Turn of 3.3v rail on RAK-4631 on shutdown

wio-e5
Ben Meadors 2023-01-10 07:36:19 -06:00
rodzic 3985008e06
commit 713f7d5996
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -239,7 +239,7 @@ void setup()
#ifdef RAK4630
// We need to enable 3.3V periphery in order to scan it
pinMode(PIN_3V3_EN, OUTPUT);
digitalWrite(PIN_3V3_EN, 1);
digitalWrite(PIN_3V3_EN, HIGH);
#endif
// Currently only the tbeam has a PMU

Wyświetl plik

@ -172,6 +172,9 @@ void cpuDeepSleep(uint64_t msecToWake)
Serial1.end();
#endif
setBluetoothEnable(false);
#ifdef RAK4630
digitalWrite(PIN_3V3_EN, LOW);
#endif
// FIXME, use system off mode with ram retention for key state?
// FIXME, use non-init RAM per
// https://devzone.nordicsemi.com/f/nordic-q-a/48919/ram-retention-settings-with-softdevice-enabled