mirror of
https://github.com/DinoMalin/paranoia-1.0.git
synced 2025-10-29 19:05:59 +00:00
24 lines
348 B
C++
24 lines
348 B
C++
#include "Jauge.h"
|
|
#include "characters.h"
|
|
|
|
hd44780_I2Cexp lcd;
|
|
LCD _lcd(&lcd);
|
|
Jauge jauge(_lcd);
|
|
|
|
void setup() {
|
|
lcd.begin(16, 2);
|
|
lcd.createChar(0, rectangle);
|
|
Serial.begin(9600);
|
|
jauge.update(5);
|
|
}
|
|
|
|
void loop() {
|
|
if (Serial.available() > 0) {
|
|
char c = Serial.read();
|
|
|
|
if (c >= '0' && c <= '8') {
|
|
jauge.update(c - '0');
|
|
}
|
|
}
|
|
}
|