mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
fixing pins chaos and add warning as errors
This commit is contained in:
parent
a178e2ac37
commit
cad2b5089e
|
|
@ -25,26 +25,28 @@ check_flags =
|
||||||
|
|
||||||
[env:heltec_wifi_lora_32_V1]
|
[env:heltec_wifi_lora_32_V1]
|
||||||
board = ttgo-lora32-v1
|
board = ttgo-lora32-v1
|
||||||
build_flags = -DHELTEC_WIFI_LORA_32_V1
|
build_flags = -Werror -Wall -DHELTEC_WIFI_LORA_32_V1
|
||||||
|
|
||||||
[env:heltec_wifi_lora_32_V2]
|
[env:heltec_wifi_lora_32_V2]
|
||||||
board = ttgo-lora32-v1
|
board = ttgo-lora32-v1
|
||||||
build_flags = -DHELTEC_WIFI_LORA_32_V2
|
build_flags = -Werror -Wall -DHELTEC_WIFI_LORA_32_V2
|
||||||
|
|
||||||
[env:ttgo-lora32-v1]
|
[env:ttgo-lora32-v1]
|
||||||
board = ttgo-lora32-v1
|
board = ttgo-lora32-v1
|
||||||
|
build_flags = -Werror -Wall -DTTGO_LORA32_V1
|
||||||
|
|
||||||
[env:ttgo-lora32-v2]
|
[env:ttgo-lora32-v2]
|
||||||
board = ttgo-lora32-v1
|
board = ttgo-lora32-v1
|
||||||
build_flags = -DARDUINO_LORA32_V2
|
build_flags = -Werror -Wall -DTTGO_LORA32_V2
|
||||||
|
|
||||||
[env:ttgo-t-beam-v1]
|
[env:ttgo-t-beam-v1]
|
||||||
board = ttgo-t-beam
|
board = ttgo-t-beam
|
||||||
|
build_flags = -Werror -Wall -DTTGO_T_Beam_V1_0
|
||||||
|
|
||||||
[env:ttgo-t-beam-v0_7]
|
[env:ttgo-t-beam-v0_7]
|
||||||
board = ttgo-t-beam
|
board = ttgo-t-beam
|
||||||
build_flags = -DARDUINO_T_Beam_V0_7
|
build_flags = -Werror -Wall -DTTGO_T_Beam_V0_7
|
||||||
|
|
||||||
[env:TrackerD-OE1ACM]
|
[env:TrackerD-OE1ACM]
|
||||||
board = esp32doit-devkit-v1
|
board = esp32doit-devkit-v1
|
||||||
build_flags = -DTRACKERD -DLORA_SCK=18 -DLORA_MISO=19 -DLORA_MOSI=23 -DLORA_CS=16 -DLORA_RST=14 -DLORA_IRQ=26
|
build_flags = -Werror -Wall -DTRACKERD -DLORA_SCK=18 -DLORA_MISO=19 -DLORA_MOSI=23 -DLORA_CS=16 -DLORA_RST=14 -DLORA_IRQ=26
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,4 @@ void show_display(String header, String line1, String line2, String line3, int w
|
||||||
void show_display(String header, String line1, String line2, String line3, String line4, int wait = 0);
|
void show_display(String header, String line1, String line2, String line3, String line4, int wait = 0);
|
||||||
void show_display(String header, String line1, String line2, String line3, String line4, String line5, int wait = 0);
|
void show_display(String header, String line1, String line2, String line3, String line4, String line5, int wait = 0);
|
||||||
|
|
||||||
#ifdef ARDUINO_T_Beam
|
|
||||||
#define OLED_SDA 21
|
|
||||||
#define OLED_SCL 22
|
|
||||||
#define OLED_RST 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
17
src/pins.h
17
src/pins.h
|
|
@ -1,28 +1,17 @@
|
||||||
#ifndef PINS_H_
|
#ifndef PINS_H_
|
||||||
#define PINS_H_
|
#define PINS_H_
|
||||||
|
|
||||||
#ifndef DHELTEC_WIFI_LORA_32_V1
|
|
||||||
#undef OLED_SDA
|
#undef OLED_SDA
|
||||||
#undef OLED_SCL
|
#undef OLED_SCL
|
||||||
#undef OLED_RST
|
#undef OLED_RST
|
||||||
|
|
||||||
|
#if defined(HELTEC_WIFI_LORA_32_V1) || defined(HELTEC_WIFI_LORA_32_V2) || defined(TTGO_LORA32_V1)
|
||||||
#define OLED_SDA 4
|
#define OLED_SDA 4
|
||||||
#define OLED_SCL 15
|
#define OLED_SCL 15
|
||||||
#define OLED_RST 16
|
#define OLED_RST 16
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DHELTEC_WIFI_LORA_32_V2
|
#if defined(TTGO_LORA32_V2) || defined(TTGO_T_Beam_V0_7) || defined(TTGO_T_Beam_V1_0)
|
||||||
#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
|
|
||||||
#undef OLED_RST
|
|
||||||
#define OLED_SDA 21
|
#define OLED_SDA 21
|
||||||
#define OLED_SCL 22
|
#define OLED_SCL 22
|
||||||
#define OLED_RST 16
|
#define OLED_RST 16
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue