Skip to content

Commit

Permalink
removed commented out stuff and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightmulcahy committed Mar 15, 2024
1 parent e002eb4 commit 1e2e7c8
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/drivers/displays/amoledDisplayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ TFT_eSprite background = TFT_eSprite(&tft);
void amoledDisplay_Init(void)
{
rm67162_init();
// lcd_setRotation(1);
lcd_setRotation(LANDSCAPE);

background.createSprite(WIDTH, HEIGHT);
Expand Down
3 changes: 1 addition & 2 deletions src/drivers/displays/dongleDisplayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ void dongleDisplay_Init(void)
#endif // USE_LED

tft.init();
// tft.setRotation(ROTATION_270);
tft.setRotation(LANDSCAPE_INVERTED);
tft.setSwapBytes(true);
background.createSprite(BUFFER_WIDTH, BUFFER_HEIGHT);
Expand All @@ -112,7 +111,7 @@ void dongleDisplay_AlternateScreenState(void)

void dongleDisplay_AlternateRotation(void)
{
tft.setRotation(flipRotation(tft.getRotation()));
tft.setRotation( flipRotation(tft.getRotation()) );
}

void dongleDisplay_MinerScreen(unsigned long mElapsed)
Expand Down
3 changes: 1 addition & 2 deletions src/drivers/displays/esp23_2432s028r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ bool hasChangedScreen = true;
void esp32_2432S028R_Init(void)
{
tft.init();
// tft.setRotation(1);
tft.setRotation(ROTATION_90);
#ifdef ESP32_2432S028_2USB
/*
Expand Down Expand Up @@ -81,7 +80,7 @@ void esp32_2432S028R_AlternateScreenState(void)

void esp32_2432S028R_AlternateRotation(void)
{
tft.setRotation(flipRotation(tft.getRotation()));
tft.setRotation( flipRotation(tft.getRotation()) );
hasChangedScreen = true;
}

Expand Down
3 changes: 1 addition & 2 deletions src/drivers/displays/m5stickCDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ int screen_state = 1;
void m5stickCDriver_Init(void)
{
M5.begin();
// M5.Lcd.setRotation(1);
M5.Lcd.setRotation(LANDSCAPE);
M5.Lcd.setTextSize(1);
M5.Lcd.fillScreen(BLACK);
Expand All @@ -44,7 +43,7 @@ void m5stickCDriver_AlternateScreenState(void)

void m5stickCDriver_AlternateRotation(void)
{
M5.Lcd.setRotation(flipRotation(M5.Lcd.getRotation()));
M5.Lcd.setRotation( flipRotation(M5.Lcd.getRotation()) );
}

void m5stickCDriver_MinerScreen(unsigned long mElapsed)
Expand Down
3 changes: 1 addition & 2 deletions src/drivers/displays/tDisplayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ void tDisplay_Init(void)
{
tft.init();
#ifdef LILYGO_S3_T_EMBED
// tft.setRotation(3);
tft.setRotation(ROTATION_270);
#else
tft.setRotation(ROTATION_90);
Expand Down Expand Up @@ -51,7 +50,7 @@ void tDisplay_AlternateScreenState(void)

void tDisplay_AlternateRotation(void)
{
tft.setRotation(flipRotation(tft.getRotation()));
tft.setRotation( flipRotation(tft.getRotation()) );
}

void tDisplay_MinerScreen(unsigned long mElapsed)
Expand Down
3 changes: 1 addition & 2 deletions src/drivers/displays/tDisplayV1Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ TFT_eSprite background = TFT_eSprite(&tft); // Invoke library sprite
void tDisplay_Init(void)
{
tft.init();
// tft.setRotation(1);
tft.setRotation(ROTATION_90);
tft.setSwapBytes(true); // Swap the colour byte order when rendering
background.createSprite(WIDTH, HEIGHT); // Background Sprite
Expand All @@ -47,7 +46,7 @@ void tDisplay_AlternateScreenState(void)

void tDisplay_AlternateRotation(void)
{
tft.setRotation(flipRotation(tft.getRotation()));
tft.setRotation( flipRotation(tft.getRotation()) );
}

void tDisplay_MinerScreen(unsigned long mElapsed)
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/displays/t_qtDisplayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void t_qtDisplay_AlternateScreenState(void)

void t_qtDisplay_AlternateRotation(void)
{
tft.setRotation(rotationRight(tft.getRotation()));
tft.setRotation( rotationRight(tft.getRotation()) );
}

void t_qtDisplay_MinerScreen(unsigned long mElapsed)
Expand Down

0 comments on commit 1e2e7c8

Please sign in to comment.