void gb.waitForUpdate()The graphics functions, like gb.display.print() or gb.display.drawPixel(), only draw in the console memory, not directly on the physical screen.
gb.waitForUpdate update the screen from the console memory.
This also handles sound updates, key press readings....everything!
Alternatively, you can also use while(!gb.update()); for the same result
none
none
#include <Gamebuino-Meta.h> void setup() { gb.begin(); } void loop() { // let's wait for the next update to have a stable framerate gb.waitForUpdate(); gb.display.clear(); gb.display.print("Hello World!"); }