Added board configuration

This commit is contained in:
Mark Qvist 2024-02-08 17:53:23 +01:00
parent 98ee2f6d32
commit 28be170cef
6 changed files with 63 additions and 7 deletions

View file

@ -35,6 +35,11 @@
#elif BOARD_MODEL == BOARD_RNODE_NG_21
#define DISP_RST -1
#define DISP_ADDR 0x3C
#elif BOARD_MODEL == BOARD_RNODE_NG_22
#define DISP_RST 21
#define DISP_ADDR 0x3C
#define SCL_OLED 17
#define SDA_OLED 18
#else
#define DISP_RST -1
#define DISP_ADDR 0x3C
@ -99,6 +104,8 @@ bool display_init() {
digitalWrite(pin_display_en, LOW);
delay(50);
digitalWrite(pin_display_en, HIGH);
#elif BOARD_MODEL == BOARD_RNODE_NG_22
Wire.begin(SDA_OLED, SCL_OLED);
#elif BOARD_MODEL == BOARD_HELTEC32_V2
Wire.begin(SDA_OLED, SCL_OLED);
#elif BOARD_MODEL == BOARD_LORA32_V1_0