Skip to content

Commit

Permalink
matrixClock example - display something on screen even if RTC library…
Browse files Browse the repository at this point in the history
… call hangs
  • Loading branch information
Louis Beaudoin committed Sep 4, 2015
1 parent 686fa84 commit 0f07ceb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/MatrixClock/MatrixClock.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ void setup() {
matrix.addLayer(&indexedLayer);
matrix.begin();

// display a simple message - will stay on the screen if calls to the RTC library fail later
indexedLayer.fillScreen(0);
indexedLayer.setFont(gohufont11b);
indexedLayer.drawString(0, kMatrixHeight / 2 - 6, 1, "CLOCK");
indexedLayer.swapBuffers(false);

matrix.setBrightness(defaultBrightness);
}

Expand Down

0 comments on commit 0f07ceb

Please sign in to comment.