kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
add config for the heltec boards
rodzic
3739462948
commit
07d90df861
|
@ -23,6 +23,14 @@ check_flags =
|
||||||
#upload_protocol = espota
|
#upload_protocol = espota
|
||||||
#upload_port = <USER>.local
|
#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]
|
[env:ttgo-lora32-v1]
|
||||||
board = ttgo-lora32-v1
|
board = ttgo-lora32-v1
|
||||||
|
|
||||||
|
|
18
src/pins.h
18
src/pins.h
|
@ -1,6 +1,24 @@
|
||||||
#ifndef PINS_H_
|
#ifndef PINS_H_
|
||||||
#define 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
|
#ifdef ARDUINO_LORA32_V2
|
||||||
#undef OLED_SDA
|
#undef OLED_SDA
|
||||||
#undef OLED_SCL
|
#undef OLED_SCL
|
||||||
|
|
Ładowanie…
Reference in New Issue