Example display component code from http://lancaster-university.github.io/microbit-docs/advanced/#using-components-directly

Dependencies:   microbit

This is the Display Component example from

the Official micro:bit DAL docs

Files at this revision

API Documentation at this revision

Comitter:
JonnyA
Date:
Wed Apr 20 14:01:36 2016 +0000
Commit message:
Example of the display component as per the docs ; http://lancaster-university.github.io/microbit-docs/advanced/#using-components-directly

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	Wed Apr 20 14:01:36 2016 +0000
@@ -0,0 +1,13 @@
+/* See 
+ * http://lancaster-university.github.io/microbit-docs/advanced/ 
+ * for docs about using the micro:bit library
+*/
+#include "MicroBit.h"
+
+MicroBitDisplay display;
+
+int main()
+{
+    while(1)
+        display.scroll(":)");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microbit.lib	Wed Apr 20 14:01:36 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/Lancaster-University/code/microbit/#9cbea9993ef1