mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-06 16:35:28 -04:00
Added board configuration
This commit is contained in:
parent
98ee2f6d32
commit
28be170cef
6 changed files with 63 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue