mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-02 22:54:49 -04:00
Update to add product and model codes for Heltec V3, swap to
HELTEC32_V3 name for board ID. Bluetooth still disabled.
This commit is contained in:
parent
7ed70727a3
commit
56a51fdafe
7 changed files with 27 additions and 14 deletions
10
Display.h
10
Display.h
|
@ -32,7 +32,7 @@
|
|||
#define DISP_ADDR 0x3C
|
||||
#define SCL_OLED 15
|
||||
#define SDA_OLED 4
|
||||
#elif BOARD_MODEL == BOARD_HELTEC_LORA32_V3
|
||||
#elif BOARD_MODEL == BOARD_HELTEC32_V3
|
||||
#define DISP_RST 21
|
||||
#define DISP_ADDR 0x3C
|
||||
#define SCL_OLED 18
|
||||
|
@ -113,7 +113,7 @@ bool display_init() {
|
|||
Wire.begin(SDA_OLED, SCL_OLED);
|
||||
#elif BOARD_MODEL == BOARD_HELTEC32_V2
|
||||
Wire.begin(SDA_OLED, SCL_OLED);
|
||||
#elif BOARD_MODEL == BOARD_HELTEC_LORA32_V3
|
||||
#elif BOARD_MODEL == BOARD_HELTEC32_V3
|
||||
// enable vext / pin 36
|
||||
pinMode(Vext, OUTPUT);
|
||||
digitalWrite(Vext, LOW);
|
||||
|
@ -166,12 +166,12 @@ bool display_init() {
|
|||
#elif BOARD_MODEL == BOARD_HELTEC32_V2
|
||||
disp_mode = DISP_MODE_PORTRAIT;
|
||||
display.setRotation(1);
|
||||
#elif BOARD_MODEL == BOARD_HELTEC_LORA32_V3
|
||||
#elif BOARD_MODEL == BOARD_HELTEC32_V3
|
||||
disp_mode = DISP_MODE_PORTRAIT;
|
||||
// Antenna conx up
|
||||
display.setRotation(1);
|
||||
//display.setRotation(1);
|
||||
// USB-C up
|
||||
//display.setRotation(3);
|
||||
display.setRotation(3);
|
||||
#else
|
||||
disp_mode = DISP_MODE_PORTRAIT;
|
||||
display.setRotation(3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue