18 lines
458 B
C++
18 lines
458 B
C++
|
#include "MicroBit.h"
|
||
|
|
||
|
MicroBit uBit;
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
// Initialise the micro:bit runtime.
|
||
|
uBit.init();
|
||
|
|
||
|
// Insert your code here!
|
||
|
uBit.display.scroll("BELLO! :)");
|
||
|
|
||
|
// If main exits, there may still be other fibers running or registered event handlers etc.
|
||
|
// Simply release this fiber, which will mean we enter the scheduler. Worse case, we then
|
||
|
// sit in the idle task forever, in a power efficient sleep.
|
||
|
release_fiber();
|
||
|
}
|