Browse Source

display & touch rotation fixed

pull/2568/head
Christos Themelis 1 month ago
parent
commit
2b70e34164
  1. 2
      examples/simple_secure_chat_ui/main.cpp
  2. 2
      variants/sensecap_indicator-espnow/SCIndicatorDisplay.h

2
examples/simple_secure_chat_ui/main.cpp

@ -974,7 +974,7 @@ void initializeDisplay() {
digitalWrite(45, HIGH);
Serial.printf("[display] BL GPIO45 after force HIGH: %d\n", digitalRead(45));
lcd.setTextSize(2);
lcd.setRotation(1);
lcd.setRotation(0);
}
void initializeTouchScreen() {

2
variants/sensecap_indicator-espnow/SCIndicatorDisplay.h

@ -135,7 +135,7 @@ public:
cfg.pin_int = GPIO_NUM_NC; // do NOT use IO_EXPANDER for touch pins
cfg.pin_rst = GPIO_NUM_NC; // do NOT use IO_EXPANDER for touch pins
cfg.bus_shared = false;
cfg.offset_rotation = 0;
cfg.offset_rotation = 2; // 180° — mirrors Meshtastic bbct.setOrientation(180,480,480)
cfg.i2c_port = 0;
cfg.i2c_addr = 0x48;

Loading…
Cancel
Save