![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
Diff: xDotBridge/src/main.cpp
- Revision:
- 28:b14b2926e916
- Parent:
- 27:6b68ff715ae1
- Child:
- 29:e05e35976cfe
--- a/xDotBridge/src/main.cpp Wed Jan 04 17:05:32 2017 -0700 +++ b/xDotBridge/src/main.cpp Wed Jan 04 17:23:12 2017 -0700 @@ -147,6 +147,7 @@ dot->setWakePin(WAKE); // Use the wake pin as sleep interrupt dot->setClass("C"); // Set class C dot->setAck(0); // Disable Ack + dot->setTxPower(20); // 20 dBm // save changes to configuration logInfo("saving configuration"); @@ -188,8 +189,10 @@ led1=0; logInfo("Finished TX. Time: %lu", us_ticker_read()); - // TODO add GPIO low power stuff here + sleep_save_io(); + sleep_configure_io(); dot->sleep(0, wakeMode, false); // Go to sleep until wake button + sleep_restore_io(); #endif /////////////////////////////////////// @@ -210,7 +213,10 @@ } led1=0; logInfo("Sleeping. Time %d", us_ticker_read()); + sleep_save_io(); + sleep_configure_io(); dot->sleep(2, wakeMode, false); // Go to sleep until wake button + sleep_restore_io(); #endif // // Idea to Setup Ticker // RxHandler rxHandler(dot);