Skip to content

Commit

Permalink
renamed screen rotation constants
Browse files Browse the repository at this point in the history
  • Loading branch information
barry-ha committed Dec 26, 2023
1 parent 2c68103 commit 1cacd5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Griduino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ void selectNewView(int cmd) {
pView->startScreen();
pView->updateScreen();
}

// ----- console Serial port helper
void waitForSerial(int howLong) {
// Adafruit Feather M4 Express takes awhile to restore its USB connection to the PC
Expand Down Expand Up @@ -630,10 +631,10 @@ void sayGrid(const char *name) {

//=========== setup ============================================
void setup() {

// ----- init TFT display
tft.begin(); // initialize TFT display
tft.setRotation(eSCREEN_ROTATE_0); // 1=landscape (default is 0=portrait)
tft.setRotation(LANDSCAPE); // 1=landscape (default is 0=portrait)
tft.fillScreen(ILI9341_BLACK); // note that "begin()" does not clear screen

// ----- init TFT backlight
Expand Down

0 comments on commit 1cacd5c

Please sign in to comment.