LEDをtoggleします。TEST用
toggle.cpp@0:4c3498745f6c, 2013-05-13 (annotated)
- Committer:
- enomoto
- Date:
- Mon May 13 04:10:32 2013 +0000
- Revision:
- 0:4c3498745f6c
LED?toggle????; ????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
enomoto | 0:4c3498745f6c | 1 | #include "mbed.h" |
enomoto | 0:4c3498745f6c | 2 | void toggle(DigitalOut x) |
enomoto | 0:4c3498745f6c | 3 | { |
enomoto | 0:4c3498745f6c | 4 | x=!x; |
enomoto | 0:4c3498745f6c | 5 | } |