XIAO_BLE wakes up from System_ON_Sleep and Writes weather data to on-board Flash

Since Post 1, the following changes have been made to reduce the sleep current from 110uA to 26uA, and the battery state can be monitored for a long time.

  1. Instead of Sleep/Wake-up by RTC interrupt, use RTOS delay() which consumes less current.
  2. Do not let Flash sleep because we do not know how to recover from DeepPowerDown mode.
  3. Periodically display the battery voltage status with LEDs.

nRF52_XIAO_LightSleep_Flash_BME280_LED.zip (73.0 KB)