HW3- swrd
Dependencies: PinDetect_KL25Z USBDevice mbed
Fork of octasword by
main.cpp@0:8c7c6ac65e1a, 2015-09-15 (annotated)
- Committer:
- twuster
- Date:
- Tue Sep 15 23:59:13 2015 +0000
- Revision:
- 0:8c7c6ac65e1a
- Child:
- 1:bce67ae4dbab
initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
twuster | 0:8c7c6ac65e1a | 1 | #include "mbed.h" |
twuster | 0:8c7c6ac65e1a | 2 | |
twuster | 0:8c7c6ac65e1a | 3 | DigitalOut myled(LED1); |
twuster | 0:8c7c6ac65e1a | 4 | |
twuster | 0:8c7c6ac65e1a | 5 | int main() { |
twuster | 0:8c7c6ac65e1a | 6 | while(1) { |
twuster | 0:8c7c6ac65e1a | 7 | myled = 1; |
twuster | 0:8c7c6ac65e1a | 8 | wait(0.2); |
twuster | 0:8c7c6ac65e1a | 9 | myled = 0; |
twuster | 0:8c7c6ac65e1a | 10 | wait(0.2); |
twuster | 0:8c7c6ac65e1a | 11 | } |
twuster | 0:8c7c6ac65e1a | 12 | } |