add support for ttgo-lora32-v2

pull/5/head
Peter Buchegger 2020-07-24 15:29:14 +02:00
rodzic 7daeb8d25b
commit 107ad67780
4 zmienionych plików z 16 dodań i 3 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -7,6 +7,7 @@
#include "LoRa_APRS.h"
#include "pins.h"
#include "settings.h"
#include "display.h"
#include "power_management.h"

Wyświetl plik

@ -4,6 +4,7 @@
#include <Adafruit_SSD1306.h>
#include "display.h"
#include "pins.h"
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RST);

13
src/pins.h 100644
Wyświetl plik

@ -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