Andres Amaya Garcia
/
microbit-blinky
Sample program that blinks a single LED of the BBC micro:bit display.
main.cpp@1:da967684f38f, 2015-10-09 (annotated)
- Committer:
- andresag
- Date:
- Fri Oct 09 15:44:18 2015 +0000
- Revision:
- 1:da967684f38f
- Parent:
- 0:d15d47966d92
Sample program that blinks a single LED of the BBC micro:bit display.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andresag | 0:d15d47966d92 | 1 | #include "mbed.h" |
andresag | 1:da967684f38f | 2 | |
andresag | 0:d15d47966d92 | 3 | DigitalOut row(P0_13); |
andresag | 0:d15d47966d92 | 4 | DigitalOut col(P0_4, 0); |
andresag | 1:da967684f38f | 5 | |
andresag | 0:d15d47966d92 | 6 | int main() { |
andresag | 0:d15d47966d92 | 7 | while(1) { |
andresag | 0:d15d47966d92 | 8 | row = 1; |
andresag | 0:d15d47966d92 | 9 | wait(0.2); |
andresag | 0:d15d47966d92 | 10 | row = 0; |
andresag | 0:d15d47966d92 | 11 | wait(0.2); |
andresag | 0:d15d47966d92 | 12 | } |
andresag | 0:d15d47966d92 | 13 | } |