1) Since the deep sleep mode no longer exists, looking at the new dot examples, I see that following calls in dot_util.cpp are made in the non-deep sleep mode scenario. Should I be doing the same or the latest mdot library handles this internally when the mdot sleeps in non deep sleep mode. Since I would be using SPI and couple of the GPIO pins.
if (! deepsleep) {
// save the GPIO state.
sleep_save_io();
// configure GPIOs for lowest current
sleep_configure_io();
}
// go to sleep/deepsleep for delay_s seconds and wake using the RTC alarm
dot->sleep(delay_s, mDot::RTC_ALARM, false);
if (! deepsleep) {
// restore the GPIO state.
sleep_restore_io();
}
Thanks,
Yogesh