ulkoisen ledin vilkuttelua micro:bitillä
Diff: main.cpp
- Revision:
- 0:033d80aa8171
diff -r 000000000000 -r 033d80aa8171 main.cpp --- /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); + } +}