first test

Dependencies:   microbit

Files at this revision

API Documentation at this revision

Comitter:
handreas
Date:
Sun Mar 01 06:55:48 2020 +0000
Commit message:
first test

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 f464d6127a87 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Mar 01 06:55:48 2020 +0000
@@ -0,0 +1,17 @@
+#include "MicroBit.h"
+
+MicroBit uBit;
+const uint8_t heart[] = { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, }; // a cute heart 
+ MicroBitImage im(10,5,heart);
+ 
+int main()
+{
+    uBit.init();
+    for (int i=0;i<2;i++) {
+        uBit.display.scroll("HELLO WORLD!");
+        uBit.display.print(im);
+        uBit.sleep(500);
+    }
+    uBit.display.clear();
+    release_fiber();
+}
diff -r 000000000000 -r f464d6127a87 microbit.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microbit.lib	Sun Mar 01 06:55:48 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/Lancaster-University/code/microbit/#4b89e7e3494f