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
Revision 0:0c37474c8541, committed 2016-04-20
- 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 |
diff -r 000000000000 -r 0c37474c8541 main.cpp --- /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
diff -r 000000000000 -r 0c37474c8541 microbit.lib --- /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