v.0.0.9 drawHorizontalScrollText

This commit is contained in:
tiijay
2025-11-06 12:11:32 +01:00
parent 7bdd67f3c3
commit f0614c9a4a
4 changed files with 81 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ void playWithBlinkLed()
Serial.println("PinStatus: " + led_status);
}
void playWithMatrix()
void setupMatrix()
{
matrix.setBrightness(255);
@@ -63,10 +63,10 @@ void playWithMatrix()
// Draw static "HELLO WORLD"
matrix.drawText(1, 1, "Hello World!", CRGB::Red);
matrix.drawText(1, 9, "<°|`¶>", CRGB::Yellow);
matrix.drawText(1, 17, "Bottom", CRGB::Yellow);
matrix.drawText(1, 25, "ABCDEFGHIJ.", CRGB::Yellow);
matrix.drawText(1, 33, "A", CRGB::Yellow);
// matrix.drawText(1, 9, "<°|`¶>", CRGB::Yellow);
// matrix.drawText(1, 17, "Bottom", CRGB::Yellow);
// matrix.drawText(1, 25, "ABCDEFGHIJ.", CRGB::Yellow);
// matrix.drawText(1, 33, "A", CRGB::Yellow);
matrix.show();
}
@@ -81,14 +81,15 @@ void setup()
delay(10);
}
// playWithMatrix();
printCharMatrixSimple('A');
number_to_bitarray_msb(0x11FF, 16, true);
setupMatrix();
// printCharMatrixSimple('A');
// number_to_bitarray_msb(0x11FF, 16, true);
// playWithBlinkLed();
}
void loop()
{
delay(1000);
matrix.drawHorizontalScrollText(41, "scrolling...", CRGB::Wheat);
delay(10);
}