
blinky kl27z
main.cpp@0:2c9c45659634, 2017-11-24 (annotated)
- Committer:
- fprado
- Date:
- Fri Nov 24 19:43:31 2017 +0000
- Revision:
- 0:2c9c45659634
blinky for kl27z
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fprado | 0:2c9c45659634 | 1 | #include "mbed.h" |
fprado | 0:2c9c45659634 | 2 | |
fprado | 0:2c9c45659634 | 3 | DigitalOut myled(LED1); |
fprado | 0:2c9c45659634 | 4 | |
fprado | 0:2c9c45659634 | 5 | int main() { |
fprado | 0:2c9c45659634 | 6 | while(1) { |
fprado | 0:2c9c45659634 | 7 | myled = 1; |
fprado | 0:2c9c45659634 | 8 | wait(0.2); |
fprado | 0:2c9c45659634 | 9 | myled = 0; |
fprado | 0:2c9c45659634 | 10 | wait(0.2); |
fprado | 0:2c9c45659634 | 11 | } |
fprado | 0:2c9c45659634 | 12 | } |