Inventor's kit experiment one: say "hello" to the bbc miicro:bit

Dependencies:   microbit

Revision:
0:9d5e4cc4a281
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun May 10 13:06:48 2020 +0000
@@ -0,0 +1,25 @@
+/* 
+ * Inventor's kit for micor:bit
+ * Experiment 1: Say "Hello"to the BBC micro:bit
+*/
+#include "MicroBit.h"
+
+MicroBit    uBit;
+MicroBitImage smiley("0,255,0,255, 0\n0,255,0,255,0\n0,0,0,0,0\n255,0,0,0,255\n0,255,255,255,0\n");
+
+int main()
+{
+    // Initialize the micor:bit
+    uBit.init();
+    
+    // loop
+    while(1)
+    {
+        if (uBit.buttonA.isPressed())
+            uBit.display.print(smiley);
+        
+        if (uBit.buttonB.isPressed())
+            uBit.display.scroll("Hello world");
+
+    }
+}
\ No newline at end of file