Merge pull request #574 from nuthub/development

Fix i2c address for OLED on TTGOv1 (use 0x3C instead of 0x3D)
This commit is contained in:
Verkehrsrot 2020-03-18 07:29:12 +01:00 committed by GitHub
commit 8d5ac6db38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

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

View File

@ -31,6 +31,9 @@
#define MY_OLED_SCL (15)
#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
// additional definitions for LMIC
#define LORA_IO1 (33)