![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
Diff: main.cpp
- Revision:
- 0:d794e1fe8c03
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon May 18 01:19:44 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +LowPowerTicker toggleTicker; + +void ledToggler(void) { + myled = !myled; +} + +int main() { + toggleTicker.attach(&ledToggler, 0.2f); + while(1) { + sleep(); + } +} \ No newline at end of file