How to use the micro:bit display without the whole microbit class. Example display component code from http://lancaster-university.github.io/microbit-docs/advanced/#using-components-directly

Dependencies:   microbit

Fork of microbit-component-display by micro:bit

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 /* See 
00002  * http://lancaster-university.github.io/microbit-docs/advanced/ 
00003  * for docs about using the micro:bit library
00004 */
00005 #include "MicroBit.h"
00006 
00007 MicroBitDisplay display;
00008 
00009 int main()
00010 {
00011     while(1)
00012         display.scroll(":)");
00013 }