mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-11-24 17:03:16 -05:00
Merge e7491b1eff into 7f868c6c28
This commit is contained in:
commit
15d3a89c93
3 changed files with 121 additions and 2 deletions
|
|
@ -88,6 +88,11 @@ void setup() {
|
|||
pinMode(PIN_LED_GREEN, OUTPUT);
|
||||
pinMode(PIN_LED_BLUE, OUTPUT);
|
||||
delay(200);
|
||||
#elif BOARD_MODEL == BOARD_RAK4631
|
||||
delay(200);
|
||||
pinMode(PIN_VEXT_EN, OUTPUT);
|
||||
digitalWrite(PIN_VEXT_EN, HIGH);
|
||||
delay(200);
|
||||
#endif
|
||||
|
||||
if (!eeprom_begin()) { Serial.write("EEPROM initialisation failed.\r\n"); }
|
||||
|
|
@ -1796,6 +1801,12 @@ void sleep_now() {
|
|||
delay(2000);
|
||||
analogWrite(PIN_VEXT_EN, 0);
|
||||
delay(100);
|
||||
#elif BOARD_MODEL == BOARD_RAK4631
|
||||
#if HAS_DISPLAY
|
||||
display_intensity = 0;
|
||||
update_display(true);
|
||||
#endif
|
||||
analogWrite(PIN_VEXT_EN, 0);
|
||||
#endif
|
||||
sd_power_gpregret_set(0, 0x6d);
|
||||
nrf_gpio_cfg_sense_input(pin_btn_usr1, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue