Low-powered blinky example

Dependencies:   mbed

Blinks an LED using a low-power ticker.

Uses the asynchronous APIs and improved sleep API.


All examples in this repo are considered EXPERIMENTAL QUALITY, meaning this code has been created as one-off proof-of-concept and is suitable as a demonstration for experimental purposes only. This code will not be regularly maintained by Silicon Labs and there is no guarantee that these projects will work across all environments, SDK versions and hardware.

--- a/main.cpp	Wed Apr 29 21:23:49 2015 +0000
+++ b/main.cpp	Mon Aug 10 07:52:21 2015 +0000
@@ -3,6 +3,12 @@
 DigitalOut myled(LED1);
 LowPowerTicker toggleTicker;
+* This is a callback! Do not call frequency-dependent operations here.
+* For a more thorough explanation, go here: 
+* https://developer.mbed.org/teams/SiliconLabs/wiki/Using-the-improved-mbed-sleep-API#mixing-sleep-with-synchronous-code
 void ledToggler(void) {
     myled = !myled;