mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-03 07:04:53 -04:00
fix: OLED initialization and make typo
This commit is contained in:
parent
c59d07efb8
commit
b12fc82a80
4 changed files with 12 additions and 5 deletions
|
@ -95,7 +95,11 @@ bool display_init() {
|
|||
#elif BOARD_MODEL == BOARD_HELTEC32_V2
|
||||
Wire.begin(SDA_OLED, SCL_OLED);
|
||||
#endif
|
||||
|
||||
|
||||
#if BOARD_MODEL == BOARD_LORA32_V1_0
|
||||
Wire.begin(SDA_OLED, SCL_OLED);
|
||||
#endif
|
||||
|
||||
if(!display.begin(SSD1306_SWITCHCAPVCC, DISP_ADDR)) {
|
||||
return false;
|
||||
} else {
|
||||
|
@ -106,6 +110,9 @@ bool display_init() {
|
|||
#elif BOARD_MODEL == BOARD_RNODE_NG_21
|
||||
disp_mode = DISP_MODE_PORTRAIT;
|
||||
display.setRotation(3);
|
||||
#elif BOARD_MODEL == BOARD_LORA32_V1_0
|
||||
disp_mode = DISP_MODE_PORTRAIT;
|
||||
display.setRotation(3);
|
||||
#elif BOARD_MODEL == BOARD_LORA32_V2_0
|
||||
disp_mode = DISP_MODE_PORTRAIT;
|
||||
display.setRotation(3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue