Heltec-WiFi-KIT32 & Heltec-WiFi-KIT32_V2

pull/23/head
Rysiek Labus 2021-03-21 17:18:14 +01:00
parent 5f14398338
commit b8427a9e1c
4 changed files with 36 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@ -54,3 +54,13 @@ build_flags = ${env.build_flags} -D LORA32_2
platform = espressif32
board = ttgo-lora32-v1
build_flags = ${env.build_flags} -D LORA32_1
[env:ttgo-Heltec-WiFi-KIT32]
platform = espressif32
board = heltec_wifi_kit_32
build_flags = ${env.build_flags} -D HELTEC_WIFI_KIT32
[env:ttgo-Heltec-WiFi-KIT32_V2]
platform = espressif32
board = heltec_wifi_kit_32_v2
build_flags = ${env.build_flags} -D HELTEC_WIFI_KIT32_V2

View File

@ -31,8 +31,31 @@
#include "version.h"
// I2C LINES
#define I2C_SDA 21
#define I2C_SCL 22
#ifdef T_BEAM_V1_0
#define I2C_SDA 21
#define I2C_SCL 22
#elif T_BEAM_V0_7
#define I2C_SDA 21
#define I2C_SCL 22
#elif LORA32_1
#define I2C_SDA 21
#define I2C_SCL 22
#elif LORA32_2
#define I2C_SDA 21
#define I2C_SCL 22
#elif LORA32_21
#define I2C_SDA 21
#define I2C_SCL 22
#elif HELTEC_WIFI_KIT32
#define I2C_SDA 4
#define I2C_SCL 15
#elif HELTEC_WIFI_KIT32_V2
#define I2C_SDA 4
#define I2C_SCL 15
#endif
// DISPLAY address
#define SSD1306_ADDRESS 0x3C