diff --git a/src/hal/heltec.h b/src/hal/heltec.h index 53930484..eb9aa31c 100644 --- a/src/hal/heltec.h +++ b/src/hal/heltec.h @@ -3,6 +3,7 @@ #define CFG_sx1276_radio 1 #define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board +//#define DISPLAY_FLIP 1 // uncomment this for rotated display #define HAS_LED GPIO_NUM_25 // white LED on board #define HAS_BUTTON GPIO_NUM_0 // button "PROG" on board diff --git a/src/hal/lolin32_lora.h b/src/hal/lolin32_lora.h index 168f5da8..a1bdbe09 100644 --- a/src/hal/lolin32_lora.h +++ b/src/hal/lolin32_lora.h @@ -5,6 +5,7 @@ #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature #define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board +//#define DISPLAY_FLIP 1 // uncomment this for rotated display #define HAS_LED NOT_A_PIN // Led os on same pin as Lora SS pin, to avoid problems, we don't use it #define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW // Anyway shield is on over the LoLin32 board, so we won't be able to see this LED diff --git a/src/hal/lolin32lite_lora.h b/src/hal/lolin32lite_lora.h index d631ccc0..fe2adac8 100644 --- a/src/hal/lolin32lite_lora.h +++ b/src/hal/lolin32lite_lora.h @@ -5,6 +5,7 @@ #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature #define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board +//#define DISPLAY_FLIP 1 // uncomment this for rotated display #define HAS_LED 22 // ESP32 GPIO12 (pin22) On Board LED #define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW #define HAS_RGB_LED 13 // ESP32 GPIO13 (pin13) On Board Shield WS2812B RGB LED diff --git a/src/hal/ttgov1.h b/src/hal/ttgov1.h index 55f6eebf..ab6b4f2c 100644 --- a/src/hal/ttgov1.h +++ b/src/hal/ttgov1.h @@ -3,6 +3,7 @@ #define CFG_sx1276_radio 1 #define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board +//#define DISPLAY_FLIP 1 // uncomment this for rotated display #define HAS_LED GPIO_NUM_2 // white LED on board #define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW #define HAS_BUTTON GPIO_NUM_0 // button "PRG" on board diff --git a/src/hal/ttgov2.h b/src/hal/ttgov2.h index aeaaebbe..537990af 100644 --- a/src/hal/ttgov2.h +++ b/src/hal/ttgov2.h @@ -3,6 +3,7 @@ #define CFG_sx1276_radio 1 // HPD13A LoRa SoC #define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C +//#define DISPLAY_FLIP 1 // uncomment this for rotated display #define HAS_LED NOT_A_PIN // on-board LED is wired to SCL (used by display) therefore totally useless // disable brownout detection (needed on TTGOv2 for battery powered operation) diff --git a/src/main.cpp b/src/main.cpp index d808640b..74a369cb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -367,6 +367,10 @@ void init_display(const char *Productname, const char *Version) { u8x8.setFlipMode(0); u8x8.clear(); + #ifdef DISPLAY_FLIP + u8x8.setFlipMode(1); + #endif + // Display chip information #ifdef VERBOSE esp_chip_info_t chip_info; diff --git a/src/main.h b/src/main.h index ddaccee9..b6b675d5 100644 --- a/src/main.h +++ b/src/main.h @@ -1,5 +1,5 @@ // program version - note: increment version after modifications to configData_t struct!! -#define PROGVERSION "1.2.91" // use max 10 chars here! +#define PROGVERSION "1.2.92" // use max 10 chars here! #define PROGNAME "PAXCNT" // Verbose enables serial output