ulkoisen ledin vilkuttelua micro:bitillä
Revision 0:033d80aa8171, committed 2018-05-22
- Comitter:
- tyynetyyne
- Date:
- Tue May 22 07:24:23 2018 +0000
- Commit message:
- First version of code for external blinking led for microbit
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
microbit.lib | 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 Tue May 22 07:24:23 2018 +0000 @@ -0,0 +1,14 @@ +#include "MicroBit.h" + +MicroBit uBit; + +int main() +{ + uBit.init(); + while (1){ + uBit.io.P0.setDigitalValue(1); + uBit.sleep(1000); + uBit.io.P0.setDigitalValue(0); + uBit.sleep(1000); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/microbit.lib Tue May 22 07:24:23 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/teams/Lancaster-University/code/microbit/#4b89e7e3494f