Mehr Delay, kein Serial

This commit is contained in:
Peter 2020-01-15 21:21:51 +01:00
parent 2ca8764788
commit 0d263dda8d
Signed by: pludi
GPG Key ID: FB1A00FEE77E2C36
1 changed files with 3 additions and 5 deletions

View File

@ -43,9 +43,7 @@ void setup()
{ {
matrix.begin(); matrix.begin();
matrix.setTextSize(1); matrix.setTextSize(1);
Serial.begin(9600);
matrix.setTextWrap(false); matrix.setTextWrap(false);
Serial.println("Setup Done");
currColor[0] = colors[random(NUM_COLORS)]; currColor[0] = colors[random(NUM_COLORS)];
currColor[1] = colors[random(NUM_COLORS)]; currColor[1] = colors[random(NUM_COLORS)];
@ -77,11 +75,11 @@ void loop()
matrix.setCursor(text[1].pos, 8); matrix.setCursor(text[1].pos, 8);
matrix.setTextColor(currColor[1]); matrix.setTextColor(currColor[1]);
matrix.print(text[1].text); matrix.print(text[1].text);
portDISABLE_INTERRUPTS(); portDISABLE_INTERRUPTS();
delay(1); delay(5);
matrix.show(); matrix.show();
delay(1); delay(5);
portENABLE_INTERRUPTS(); portENABLE_INTERRUPTS();
changed=false; changed=false;