Heltec-WiFi-KIT32 & Heltec-WiFi-KIT32_V2

master_sq9mdd
Rysiek Labus 2021-03-21 17:18:14 +01:00
rodzic 5f14398338
commit b8427a9e1c
4 zmienionych plików z 36 dodań i 3 usunięć

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -53,4 +53,14 @@ build_flags = ${env.build_flags} -D LORA32_2
[env:ttgo-lora32-v1]
platform = espressif32
board = ttgo-lora32-v1
build_flags = ${env.build_flags} -D LORA32_1
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

Wyświetl plik

@ -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