sort of work with bicolor displays (yellow+blue), though GUI layout not right

This commit is contained in:
geeksville 2020-02-08 18:49:15 -08:00
parent fb5b4af5be
commit fb043bf86a
2 changed files with 8 additions and 3 deletions

View File

@ -38,11 +38,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Select which T-Beam board is being used. Only uncomment one. Note: these options now come from platformio standard build file flags // Select which T-Beam board is being used. Only uncomment one. Note: these options now come from platformio standard build file flags
//#ifdef ARDUINO_T_Beam //#ifdef ARDUINO_T_Beam
//#define T_BEAM_V10 // AKA Rev1 (second board released) #define T_BEAM_V10 // AKA Rev1 (second board released)
//#endif //#endif
//#ifdef ARDUINO_HELTEC_WIFI_LORA_32_V2 //#ifdef ARDUINO_HELTEC_WIFI_LORA_32_V2
#define HELTEC_LORA32 //#define HELTEC_LORA32
//#endif //#endif
// If we are using the JTAG port for debugging, some pins must be left free for that (and things like GPS have to be disabled) // If we are using the JTAG port for debugging, some pins must be left free for that (and things like GPS have to be disabled)
@ -109,6 +109,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#if defined(T_BEAM_V10) #if defined(T_BEAM_V10)
#define HW_VENDOR "TTGO" #define HW_VENDOR "TTGO"
#define BICOLOR_DISPLAY // we have yellow at the top 16 lines
#define I2C_SDA 21 #define I2C_SDA 21
#define I2C_SCL 22 #define I2C_SCL 22

View File

@ -328,7 +328,10 @@ void screen_setup()
// Scroll buffer // Scroll buffer
dispdev.setLogBuffer(5, 32); dispdev.setLogBuffer(5, 32);
// dispdev.flipScreenVertically(); // looks better without this on lora32 #ifdef BICOLOR_DISPLAY
dispdev.flipScreenVertically(); // looks better without this on lora32
#endif
// dispdev.setFont(Custom_ArialMT_Plain_10); // dispdev.setFont(Custom_ArialMT_Plain_10);
#endif #endif
} }