add config for the heltec boards

pull/5/head
Peter Buchegger 2020-08-28 15:47:59 +02:00
rodzic 3739462948
commit 07d90df861
2 zmienionych plików z 26 dodań i 0 usunięć

Wyświetl plik

@ -23,6 +23,14 @@ check_flags =
#upload_protocol = espota
#upload_port = <USER>.local
[env:heltec_wifi_lora_32_V1]
board = ttgo-lora32-v1
build_flags = -DHELTEC_WIFI_LORA_32_V1
[env:heltec_wifi_lora_32_V2]
board = ttgo-lora32-v1
build_flags = -DHELTEC_WIFI_LORA_32_V2
[env:ttgo-lora32-v1]
board = ttgo-lora32-v1

Wyświetl plik

@ -1,6 +1,24 @@
#ifndef PINS_H_
#define PINS_H_
#ifndef DHELTEC_WIFI_LORA_32_V1
#undef OLED_SDA
#undef OLED_SCL
#undef OLED_RST
#define OLED_SDA 4
#define OLED_SCL 15
#define OLED_RST 16
#endif
#ifndef DHELTEC_WIFI_LORA_32_V2
#undef OLED_SDA
#undef OLED_SCL
#undef OLED_RST
#define OLED_SDA 4
#define OLED_SCL 15
#define OLED_RST 16
#endif
#ifdef ARDUINO_LORA32_V2
#undef OLED_SDA
#undef OLED_SCL