opraven vypis

This commit is contained in:
sebhajek 2022-12-19 14:23:42 +01:00
parent 2b38675439
commit fa701086a1

View file

@ -220,12 +220,13 @@ void writeScreenData(dataMode DATA_MODE, screenMode COLOR_MODE, String data){
M5.Lcd.drawString("...", 148, 100, 4);
}
if(DATA_MODE != STOP){
/* if(COLOR_MODE == DARK) {
if(COLOR_MODE == DARK) {
M5.Lcd.fillRect(132,116,64,64,COLORS[LIGHT]);
} else {
M5.Lcd.fillRect(132,116,64,64,COLORS[DARK]);
}*/
}
M5.Lcd.drawString(data, 132, 128, 4);
delay(80);
}
}
@ -239,7 +240,7 @@ void loop() {
stringReceived += c;
if(DATA_MODE != RAW){
if (stringReceived.length() >= 3) {
if (stringReceived.length() == 3) {
Serial.println("s:"+stringReceived);
valueReceived = stringReceived.toInt();
Serial.println(valueReceived);
@ -247,7 +248,7 @@ void loop() {
valueReceived= 0;
}
}else {
if (stringReceived.length() >= 8) {
if (stringReceived.length() == 8) {
Serial.println("s:"+stringReceived);
valueReceived = stringReceived.toInt();
Serial.println(valueReceived);