Skip to content

Commit 2dc9b73

Browse files
committed
Fixing the scrolling function allows to shot the full text.
1 parent e191781 commit 2dc9b73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libraries/Arduino_LED_Matrix/examples/TextWithArduinoGraphics/TextWithArduinoGraphics.ino

Lines changed: 4 additions & 3 deletions
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)