kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
add support for ttgo-lora32-v2
rodzic
7daeb8d25b
commit
107ad67780
|
@ -26,9 +26,7 @@ check_flags =
|
|||
[env:ttgo-lora32-v1]
|
||||
board = ttgo-lora32-v1
|
||||
|
||||
# issue with platformio
|
||||
#[env:ttgo-lora32-v2]
|
||||
#board = ttgo-lora32-v2
|
||||
[env:ttgo-lora32-v2]
|
||||
|
||||
[env:ttgo-t-beam-v1]
|
||||
board = ttgo-t-beam
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include "LoRa_APRS.h"
|
||||
|
||||
#include "pins.h"
|
||||
#include "settings.h"
|
||||
#include "display.h"
|
||||
#include "power_management.h"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <Adafruit_SSD1306.h>
|
||||
|
||||
#include "display.h"
|
||||
#include "pins.h"
|
||||
|
||||
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RST);
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef PINS_H_
|
||||
#define PINS_H_
|
||||
|
||||
#ifdef ARDUINO_LORA32_V2
|
||||
#undef OLED_SDA
|
||||
#undef OLED_SCL
|
||||
#undef OLED_RST
|
||||
#define OLED_SDA 21
|
||||
#define OLED_SCL 22
|
||||
#define OLED_RST 16
|
||||
#endif
|
||||
|
||||
#endif
|
Ładowanie…
Reference in New Issue