Eduvance IoTLabs
/
duty_led
test commit
main.cpp@0:195473e80a6f, 2016-09-10 (annotated)
- Committer:
- eduvanceIoT
- Date:
- Sat Sep 10 05:46:45 2016 +0000
- Revision:
- 0:195473e80a6f
test commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
eduvanceIoT | 0:195473e80a6f | 1 | #include "mbed.h" |
eduvanceIoT | 0:195473e80a6f | 2 | |
eduvanceIoT | 0:195473e80a6f | 3 | DigitalOut myled(PTE20); |
eduvanceIoT | 0:195473e80a6f | 4 | |
eduvanceIoT | 0:195473e80a6f | 5 | int main() { |
eduvanceIoT | 0:195473e80a6f | 6 | while(1) { |
eduvanceIoT | 0:195473e80a6f | 7 | |
eduvanceIoT | 0:195473e80a6f | 8 | myled = 0; |
eduvanceIoT | 0:195473e80a6f | 9 | wait_ms(1); |
eduvanceIoT | 0:195473e80a6f | 10 | myled = 1; |
eduvanceIoT | 0:195473e80a6f | 11 | wait_ms(1); |
eduvanceIoT | 0:195473e80a6f | 12 | myled = 0; |
eduvanceIoT | 0:195473e80a6f | 13 | wait_ms(18); |
eduvanceIoT | 0:195473e80a6f | 14 | } |
eduvanceIoT | 0:195473e80a6f | 15 | } |