Heltec-WiFi-KIT32 & Heltec-WiFi-KIT32_V2
rodzic
5f14398338
commit
b8427a9e1c
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
|
@ -54,3 +54,13 @@ build_flags = ${env.build_flags} -D LORA32_2
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = ttgo-lora32-v1
|
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
|
|
@ -31,8 +31,31 @@
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
// I2C LINES
|
// I2C LINES
|
||||||
|
|
||||||
|
#ifdef T_BEAM_V1_0
|
||||||
#define I2C_SDA 21
|
#define I2C_SDA 21
|
||||||
#define I2C_SCL 22
|
#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
|
// DISPLAY address
|
||||||
#define SSD1306_ADDRESS 0x3C
|
#define SSD1306_ADDRESS 0x3C
|
||||||
|
|
Ładowanie…
Reference in New Issue