LedControllerTests
Dependencies: LedController
Fork of ServomotorTests by
main.cpp@0:07953da87c60, 2017-02-25 (annotated)
- Committer:
- dupm2216
- Date:
- Sat Feb 25 18:59:29 2017 +0000
- Revision:
- 0:07953da87c60
- Child:
- 1:6e4e8b9d6069
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dupm2216 | 0:07953da87c60 | 1 | #include "mbed.h" |
dupm2216 | 0:07953da87c60 | 2 | |
dupm2216 | 0:07953da87c60 | 3 | DigitalOut myled(LED1); |
dupm2216 | 0:07953da87c60 | 4 | |
dupm2216 | 0:07953da87c60 | 5 | int main() |
dupm2216 | 0:07953da87c60 | 6 | { |
dupm2216 | 0:07953da87c60 | 7 | while(1) |
dupm2216 | 0:07953da87c60 | 8 | { |
dupm2216 | 0:07953da87c60 | 9 | myled = 1; |
dupm2216 | 0:07953da87c60 | 10 | wait(0.2); |
dupm2216 | 0:07953da87c60 | 11 | myled = 0; |
dupm2216 | 0:07953da87c60 | 12 | wait(0.2); |
dupm2216 | 0:07953da87c60 | 13 | } |
dupm2216 | 0:07953da87c60 | 14 | } |