remove pin definitions from header file

add LoRa header (3 bytes)
This commit is contained in:
Peter Buchegger 2020-05-11 13:42:29 +02:00
parent f109099b0f
commit edb45e4f1e
3 changed files with 7 additions and 14 deletions

View file

@ -6,7 +6,7 @@
#include "display.h"
#include "settings.h"
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RST);
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RST);
void setup_display()
{

View file

@ -11,4 +11,10 @@ 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, String line5, int wait = 0);
#ifdef ARDUINO_T_Beam
#define OLED_SDA 21
#define OLED_SCL 22
#define OLED_RST 4
#endif
#endif

View file

@ -4,17 +4,4 @@
#define CALL "OE5BPA-7"
#define LORA_SCK 5
#define LORA_MISO 19
#define LORA_MOSI 27
#define LORA_SS 18
#define LORA_RST 23
#define LORA_DIO0 26
#define OLED_SDA 21
#define OLED_SCL 22
#define OLED_RST 4
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#endif