use for led toggle
Diff: toggle.cpp
- Revision:
- 0:0b2d00066327
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