diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index 93cbecd..0de20f6 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -449,7 +449,7 @@ struct st_configitems config_list[] = { {"oled_rst", "OLED RST/TFT RST (needs reboot)", 0, &sonde.config.oled_rst}, {"tft_rs", "TFT RS", 0, &sonde.config.tft_rs}, {"tft_cs", "TFT CS", 0, &sonde.config.tft_cs}, - {"tft_orient", "TFT orientation (0/1/2/3)", 0, &sonde.config.tft_orient}, + {"tft_orient", "TFT orientation (0/1/2/3), OLED flip: 3", 0, &sonde.config.tft_orient}, {"button_pin", "Button input port", -4, &sonde.config.button_pin}, {"button2_pin", "Button 2 input port", -4, &sonde.config.button2_pin}, {"touch_thresh", "Touch button threshold", 0, &sonde.config.touch_thresh}, diff --git a/libraries/SondeLib/Display.cpp b/libraries/SondeLib/Display.cpp index 3bdfef3..db5579e 100644 --- a/libraries/SondeLib/Display.cpp +++ b/libraries/SondeLib/Display.cpp @@ -212,6 +212,7 @@ void U8x8Display::begin() { u8x8 = new U8X8_SSD1306_128X64_NONAME_HW_I2C(/* reset=*/ sonde.config.oled_rst, /* clock=*/ sonde.config.oled_scl, /* data=*/ sonde.config.oled_sda); // Unbuffered, basic graphics, software I2C } u8x8->begin(); + if(sonde.config.tft_orient==3) u8x8->setFlipMode(true); fontlist = fl; nfonts = sizeof(fl)/sizeof(uint8_t *);