mirror of
https://github.com/DinoMalin/paranoia-1.0.git
synced 2026-09-23 03:36:54 +02:00
i fucking don't know why but it sometimes works
This commit is contained in:
+4
-2
@@ -1,7 +1,7 @@
|
||||
#include "Face.h"
|
||||
#include "characters.h"
|
||||
|
||||
hd44780_I2Cexp lcd; // auto-detects the I2C address
|
||||
hd44780_I2Cexp lcd;
|
||||
LCD _lcd(&lcd);
|
||||
Face face(_lcd);
|
||||
char last = 0;
|
||||
@@ -28,8 +28,10 @@ void loop() {
|
||||
if (Serial.available() > 0) {
|
||||
char c = Serial.read();
|
||||
|
||||
if (c != last && c >= '1' && c <= '5')
|
||||
if (c != last && c >= '1' && c <= '5') {
|
||||
Serial.println(c);
|
||||
lcd.clear();
|
||||
}
|
||||
if (c < '1' || c > '5') // repeat
|
||||
c = last;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user