ulkoisen ledin vilkuttelua micro:bitillä

Dependencies:   microbit

Files at this revision

API Documentation at this revision

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
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);
+        }
+}
diff -r 000000000000 -r 033d80aa8171 microbit.lib
--- /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