Skip to content

Commit 7caf4d1

Browse files
authored
Add example about matrix.clear()
1 parent 32a6614 commit 7caf4d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/Arduino_LED_Matrix/examples/DisplaySingleFrame/DisplaySingleFrame.ino

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ void loop() {
3434
matrix.loadFrame(LEDMATRIX_HEART_BIG);
3535
delay(500);
3636

37+
// Turn off the display
38+
matrix.clear();
39+
delay(1000);
40+
3741
// Print the current value of millis() to the serial monitor
3842
Serial.println(millis());
3943
}

0 commit comments

Comments
 (0)