Skip to content

Commit

Permalink
Updated example to adapt to Arduino IDE compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Feb 1, 2024
1 parent 84ba162 commit 76ca887
Show file tree
Hide file tree
Showing 15 changed files with 2,976 additions and 226 deletions.
4 changes: 4 additions & 0 deletions examples/ImageScroll/ImageScroll.ino
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ unsigned short imageS[54400] = {0}; // edit this screenW * screen H

void setup()
{
//Turn on display power
pinMode(15, OUTPUT);
digitalWrite(15, HIGH);

tft.init();
tft.setRotation(1);

Expand Down
3 changes: 2 additions & 1 deletion examples/PCBClock/PCBClock.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ int period = 900;

void setup()
{
//Turn on display power
pinMode(15, OUTPUT);
digitalWrite(15, 1);
digitalWrite(15, HIGH);

pinMode(0, INPUT_PULLUP);
pinMode(14, INPUT_PULLUP);
Expand Down
6 changes: 4 additions & 2 deletions examples/PokerS3/PokerS3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,12 @@ void Click()

void setup()
{
//Turn on display power
pinMode(15, OUTPUT);
digitalWrite(15, HIGH);

pinMode(up, INPUT_PULLUP);
pinMode(down, INPUT_PULLUP);
pinMode(15, OUTPUT);
digitalWrite(15, 1);

tft.init(); // amoled lcd initialization
tft.setRotation(1);
Expand Down
Loading

0 comments on commit 76ca887

Please sign in to comment.