Sample program that blinks a single LED of the BBC micro:bit display.

Dependencies:   mbed

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?

UserRevisionLine numberNew 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 }