Skip to content

Commit a2bc831

Browse files
committed
Eliminate Serial.begin(), streamline code, reduce scroll speed.
1 parent d914e0c commit a2bc831

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

libraries/Arduino_LED_Matrix/examples/TextWithArduinoGraphics/TextWithArduinoGraphics.ino

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@
55
ArduinoLEDMatrix matrix;
66

77
void setup() {
8-
Serial.begin(115200);
98
matrix.begin();
109

11-
matrix.textScrollSpeed(50);
12-
1310
matrix.beginDraw();
11+
1412
matrix.stroke(0xFFFFFFFF);
13+
matrix.textScrollSpeed(100);
1514

16-
const char text[] = "UNO r4";
15+
const char text[] = " UNO r4 ";
1716
matrix.textFont(Font_4x6);
1817
matrix.beginText(0, 1, 0xFFFFFF);
1918
matrix.println(text);
2019
matrix.endText(SCROLL_LEFT);
2120

2221
matrix.endDraw();
23-
24-
delay(2000);
2522
}
2623

2724
void loop() {

0 commit comments

Comments
 (0)