add support for ttgo-lora32-v2

This commit is contained in:
Peter Buchegger 2020-07-24 15:29:14 +02:00
parent 7daeb8d25b
commit 107ad67780
4 changed files with 16 additions and 3 deletions

View file

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

View file

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

View file

@ -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 Normal file
View file

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