Skip to content

Commit

Permalink
Improved example sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy4495 committed Jul 4, 2024
1 parent d4f1712 commit 6f5aa8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/Newhaven_OLED_example/Newhaven_OLED_example.ino
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
Modified 19 May 2015 by Pasquale D'Antini:
https://www.newhavendisplay.com/NHD_forum/index.php?topic=914.0
Further modifications to use "NewhavenOLED" library by Andy4495, Dec 2017 and Jan 2019.
Further modifications to use "NewhavenOLED" library by Andy4495, Dec 2017, Jan 2019, July 2024.
This example code is in the public domain.
*/
Expand Down Expand Up @@ -128,11 +128,12 @@ void oneAtATime() {

void singleUpdate() {
char c = '0';
oled.clear();

for (int i = 0; i < COLUMN_N; i++) {
oled.write(COLUMN_N/2, 0, c++);
delay(100);
}
delay(100);

}
// _______________________________________________________________________________________
Expand Down

0 comments on commit 6f5aa8d

Please sign in to comment.