use for led toggle
toggle.cpp@0:0b2d00066327, 2012-03-22 (annotated)
- Committer:
- uchiyama
- Date:
- Thu Mar 22 05:29:17 2012 +0000
- Revision:
- 0:0b2d00066327
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
uchiyama | 0:0b2d00066327 | 1 | #include "mbed.h" |
uchiyama | 0:0b2d00066327 | 2 | void toggle(DigitalOut x) |
uchiyama | 0:0b2d00066327 | 3 | { |
uchiyama | 0:0b2d00066327 | 4 | x = !x; |
uchiyama | 0:0b2d00066327 | 5 | } |