#include "MicroBit.h" MicroBit uBit; void printMemoryAndStop() { int blockSize = 64; int i = 1; uBit.serial.printf("Checking memory with blocksize %d char ...\n", blockSize); while (true) { char *p = (char *) malloc(blockSize); if (p == NULL) break; // this actually never happens, get a panic(20) outOfMemory first uBit.serial.printf("%d + %d/16 K\n", i/16, i%16); ++i; } } int main() { // Initialise the micro:bit runtime. uBit.init(); // Insert your code here! uBit.display.scroll("HELLO WORLD! :)"); printMemoryAndStop(); release_fiber(); }