![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
Revision 0:d794e1fe8c03, committed 2015-05-18
- Comitter:
- vijaydew
- Date:
- Mon May 18 01:19:44 2015 +0000
- Commit message:
- test blink;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon May 18 01:19:44 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/dbbf35b96557 \ No newline at end of file