Try it

Dependencies:   microbit

Fork of microbit-hello-world by micro:bit

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 /*
00002 The MIT License (MIT)
00003 
00004 
00005 */
00006 
00007 #include "MicroBit.h"
00008 
00009 MicroBit uBit;
00010 
00011 int main()
00012 {
00013     // Initialise the micro:bit runtime.
00014     uBit.init();
00015 
00016     // Insert your code here!
00017     uBit.display.scroll("HELLO PETR :)");
00018 
00019     // If main exits, there may still be other fibers running or registered event handlers etc.
00020     // Simply release this fiber, which will mean we enter the scheduler. Worse case, we then
00021     // sit in the idle task forever, in a power efficient sleep.
00022     release_fiber();
00023 }
00024