Skip to content

Commit d914e0c

Browse files
committed
Fixing the scrolling function allows to shot the full text.
1 parent 31959c3 commit d914e0c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libraries/Arduino_LED_Matrix/examples/TextWithArduinoGraphics/TextWithArduinoGraphics.ino

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ void setup() {
88
Serial.begin(115200);
99
matrix.begin();
1010

11+
matrix.textScrollSpeed(50);
12+
1113
matrix.beginDraw();
1214
matrix.stroke(0xFFFFFFFF);
13-
// add some static text
14-
// will only show "UNO" (not enough space on the display)
15+
1516
const char text[] = "UNO r4";
1617
matrix.textFont(Font_4x6);
1718
matrix.beginText(0, 1, 0xFFFFFF);
1819
matrix.println(text);
19-
matrix.endText();
20+
matrix.endText(SCROLL_LEFT);
2021

2122
matrix.endDraw();
2223

0 commit comments

Comments
 (0)