Hajime Muraki
/
swled
aa
main.cpp@0:b145ea9e6320, 2013-07-11 (annotated)
- Committer:
- com3
- Date:
- Thu Jul 11 10:43:27 2013 +0000
- Revision:
- 0:b145ea9e6320
ogata
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
com3 | 0:b145ea9e6320 | 1 | #include "mbed.h" |
com3 | 0:b145ea9e6320 | 2 | |
com3 | 0:b145ea9e6320 | 3 | DigitalOut myled(LED1); |
com3 | 0:b145ea9e6320 | 4 | DigitalIn mysw(p7); |
com3 | 0:b145ea9e6320 | 5 | |
com3 | 0:b145ea9e6320 | 6 | int main() { |
com3 | 0:b145ea9e6320 | 7 | mysw.mode(PullUp); |
com3 | 0:b145ea9e6320 | 8 | while(1) { |
com3 | 0:b145ea9e6320 | 9 | myled = mysw; |
com3 | 0:b145ea9e6320 | 10 | //wait(0.2); |
com3 | 0:b145ea9e6320 | 11 | } |
com3 | 0:b145ea9e6320 | 12 | } |