From a25ab0930c465363cadd8da8d0a5022ea79e1163 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 4 Feb 2019 19:45:40 +0100 Subject: [PATCH 1/5] Update heltecv2.h --- src/hal/heltecv2.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hal/heltecv2.h b/src/hal/heltecv2.h index dc3cb305..ad34f68c 100644 --- a/src/hal/heltecv2.h +++ b/src/hal/heltecv2.h @@ -18,9 +18,9 @@ #define HAS_BUTTON KEY_BUILTIN // button "PROG" on board // Pins for I2C interface of OLED Display -#define MY_OLED_SDA OLED_SDA -#define MY_OLED_SCL OLED_SCL -#define MY_OLED_RST OLED_RST +#define MY_OLED_SDA (21) +#define MY_OLED_SCL (22) +#define MY_OLED_RST (16) // Pins for LORA chip SPI interface come from board file, we need some // additional definitions for LMIC From b9d4204c098ccdaddb3a0298a2e000edef85c6d4 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 4 Feb 2019 20:43:55 +0100 Subject: [PATCH 2/5] Update platformio.ini --- platformio.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index d64d1be7..195b221d 100644 --- a/platformio.ini +++ b/platformio.ini @@ -6,7 +6,7 @@ ; ---> SELECT TARGET PLATFORM HERE! <--- [platformio] -;env_default = generic +env_default = generic ;env_default = ebox ;env_default = eboxtube ;env_default = heltec @@ -24,7 +24,7 @@ ;env_default = lolin32lora ;env_default = lolin32lite ;env_default = octopus32 -env_default = ebox, eboxtube, heltec, ttgobeam, lopy4, lopy, ttgov21old, ttgov21new, ttgofox +;env_default = ebox, eboxtube, heltec, ttgobeam, lopy4, lopy, ttgov21old, ttgov21new, ttgofox ; description = Paxcounter is a proof-of-concept ESP32 device for metering passenger flows in realtime. It counts how many mobile devices are around. From ba3320b0bb5d614511892f37f54b47ccac383ba0 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 4 Feb 2019 20:51:16 +0100 Subject: [PATCH 3/5] Update heltec.h --- src/hal/heltec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hal/heltec.h b/src/hal/heltec.h index 5535c12d..3b1e9e5a 100644 --- a/src/hal/heltec.h +++ b/src/hal/heltec.h @@ -16,9 +16,9 @@ #define HAS_BUTTON KEY_BUILTIN // button "PROG" on board // Pins for I2C interface of OLED Display -#define MY_OLED_SDA OLED_SDA -#define MY_OLED_SCL OLED_SCL -#define MY_OLED_RST OLED_RST +#define MY_OLED_SDA (4) +#define MY_OLED_SCL (15) +#define MY_OLED_RST (16) // Pins for LORA chip SPI interface come from board file, we need some // additional definitions for LMIC From bef33af4b80c797fd1425daa9de18884ec1b63f1 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 4 Feb 2019 20:53:27 +0100 Subject: [PATCH 4/5] Update ttgov2.h --- src/hal/ttgov2.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hal/ttgov2.h b/src/hal/ttgov2.h index 9a982dda..35c98485 100644 --- a/src/hal/ttgov2.h +++ b/src/hal/ttgov2.h @@ -18,8 +18,8 @@ #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature // Pins for I2C interface of OLED Display -#define MY_OLED_SDA OLED_SDA -#define MY_OLED_SCL OLED_SCL +#define MY_OLED_SDA (21) +#define MY_OLED_SCL (22) #define MY_OLED_RST U8X8_PIN_NONE // Pins for LORA chip SPI interface come from board file, we need some @@ -28,4 +28,4 @@ #define LORA_IO1 (33) #define LORA_IO2 LMIC_UNUSED_PIN -#endif \ No newline at end of file +#endif From 5d1bff6a9b952d266568e7cfe4238eee9c714b91 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 4 Feb 2019 20:56:38 +0100 Subject: [PATCH 5/5] Update ttgov1.h --- src/hal/ttgov1.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hal/ttgov1.h b/src/hal/ttgov1.h index ce926175..25f56d3f 100644 --- a/src/hal/ttgov1.h +++ b/src/hal/ttgov1.h @@ -17,9 +17,9 @@ #define HAS_BUTTON KEY_BUILTIN // Pins for I2C interface of OLED Display -#define MY_OLED_SDA OLED_SDA -#define MY_OLED_SCL OLED_SCL -#define MY_OLED_RST OLED_RST +#define MY_OLED_SDA (15) +#define MY_OLED_SCL (4) +#define MY_OLED_RST (16) // Pins for LORA chip SPI interface come from board file, we need some // additional definitions for LMIC