mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-03 15:14:51 -04:00
add support for rak1921 oled display on rak4631 boards
This commit is contained in:
parent
e993da9e0f
commit
49a524e8d5
2 changed files with 10 additions and 1 deletions
|
@ -45,6 +45,12 @@
|
|||
#define DISP_ADDR 0x3C
|
||||
#define SCL_OLED 18
|
||||
#define SDA_OLED 17
|
||||
#elif BOARD_MODEL == BOARD_RAK4631
|
||||
// RAK1921/SSD1306
|
||||
#define DISP_RST -1
|
||||
#define DISP_ADDR 0x3C
|
||||
#define SCL_OLED 14
|
||||
#define SDA_OLED 13
|
||||
#elif BOARD_MODEL == BOARD_RNODE_NG_21
|
||||
#define DISP_RST -1
|
||||
#define DISP_ADDR 0x3C
|
||||
|
@ -256,6 +262,9 @@ bool display_init() {
|
|||
#elif BOARD_MODEL == BOARD_HELTEC32_V3
|
||||
disp_mode = DISP_MODE_PORTRAIT;
|
||||
display.setRotation(1);
|
||||
#elif BOARD_MODEL == BOARD_RAK4631
|
||||
disp_mode = DISP_MODE_PORTRAIT;
|
||||
display.setRotation(1);
|
||||
#elif BOARD_MODEL == BOARD_TDECK
|
||||
disp_mode = DISP_MODE_PORTRAIT;
|
||||
display.setRotation(3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue