use for led toggle
Revision 0:0b2d00066327, committed 2012-03-22
- Comitter:
- uchiyama
- Date:
- Thu Mar 22 05:29:17 2012 +0000
- Commit message:
Changed in this revision
toggle.cpp | Show annotated file Show diff for this revision Revisions of this file |
toggle.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 0b2d00066327 toggle.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toggle.cpp Thu Mar 22 05:29:17 2012 +0000 @@ -0,0 +1,5 @@ +#include "mbed.h" +void toggle(DigitalOut x) +{ + x = !x; +} \ No newline at end of file
diff -r 000000000000 -r 0b2d00066327 toggle.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toggle.h Thu Mar 22 05:29:17 2012 +0000 @@ -0,0 +1,7 @@ +#ifndef yueee_led_toggle_h +#define yueee_led_toggle_h + +#include "mbed.h" +void toggle(DigitalOut x); + +#endif \ No newline at end of file