Fix i2c address for OLED on TTGOv1 (use 0x3C instead of 0x3D)

This commit is contained in:
Julian Flake 2020-03-17 22:31:34 +01:00
parent 8dde6bb13b
commit e7d5df6f4b
2 changed files with 8 additions and 1 deletions

View File

@ -8,7 +8,11 @@
// settings for oled display library // settings for oled display library
#define USE_BACKBUFFER 1 #define USE_BACKBUFFER 1
#define MY_OLED OLED_128x64 #define MY_OLED OLED_128x64
#ifdef MY_OLED_ADDR
#define OLED_ADDR MY_OLED_ADDR
#else
#define OLED_ADDR -1 #define OLED_ADDR -1
#endif
#define OLED_INVERT 0 #define OLED_INVERT 0
#define USE_HW_I2C 1 #define USE_HW_I2C 1

View File

@ -31,6 +31,9 @@
#define MY_OLED_SCL (15) #define MY_OLED_SCL (15)
#define MY_OLED_RST (16) #define MY_OLED_RST (16)
// This board reports back the wrong I2C address, so we overwrite it here
#define MY_OLED_ADDR 0x3C
// Pins for LORA chip SPI interface come from board file, we need some // Pins for LORA chip SPI interface come from board file, we need some
// additional definitions for LMIC // additional definitions for LMIC
#define LORA_IO1 (33) #define LORA_IO1 (33)