Created
August 31, 2017 15:21
-
-
Save deejaygraham/8f36b21073d4f78a38ef69b5e7dcfe1b to your computer and use it in GitHub Desktop.
hello world for microbit in c++ as generated by mbed compiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "MicroBit.h" | |
MicroBit uBit; | |
int main() | |
{ | |
// Initialise the micro:bit runtime. | |
uBit.init(); | |
// Insert your code here! | |
uBit.display.scroll("HELLO WORLD! :)"); | |
// 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(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment