sforkowany z mirror/meshtastic-firmware
sort of work with bicolor displays (yellow+blue), though GUI layout not right
rodzic
fb5b4af5be
commit
fb043bf86a
|
@ -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
|
||||
//#ifdef ARDUINO_T_Beam
|
||||
//#define T_BEAM_V10 // AKA Rev1 (second board released)
|
||||
#define T_BEAM_V10 // AKA Rev1 (second board released)
|
||||
//#endif
|
||||
|
||||
//#ifdef ARDUINO_HELTEC_WIFI_LORA_32_V2
|
||||
#define HELTEC_LORA32
|
||||
//#define HELTEC_LORA32
|
||||
//#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)
|
||||
|
@ -109,6 +109,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#if defined(T_BEAM_V10)
|
||||
#define HW_VENDOR "TTGO"
|
||||
|
||||
#define BICOLOR_DISPLAY // we have yellow at the top 16 lines
|
||||
|
||||
#define I2C_SDA 21
|
||||
#define I2C_SCL 22
|
||||
|
||||
|
|
|
@ -328,7 +328,10 @@ void screen_setup()
|
|||
// Scroll buffer
|
||||
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);
|
||||
#endif
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue