Andres Amaya Garcia
/
microbit-blinky
Sample program that blinks a single LED of the BBC micro:bit display.
Revision 0:d15d47966d92, committed 2015-10-09
- Comitter:
- andresag
- Date:
- Fri Oct 09 15:28:16 2015 +0000
- Child:
- 1:da967684f38f
- Commit message:
- Sample program that blinks a single LED of the BBC micro:bit display.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Oct 09 15:28:16 2015 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut row(P0_13); +DigitalOut col(P0_4, 0); + +int main() { + while(1) { + row = 1; + wait(0.2); + row = 0; + wait(0.2); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Oct 09 15:28:16 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68 \ No newline at end of file