void gb.setFrameRate(uint8_t fps)
gb.setFrameRate allow to change the default screen refresh rate.
This allow to increase or decrease the screen refresh.
fps : The new frame rate to use, from 1 to 50
none
#include <Gamebuino-Meta.h>
void setup() {
gb.begin();
gb.setFrameRate(10); // now, the console draw 10 pictures per seconds
}
int picture_count = 0;
void loop() {
// let's wait for the next update to have a stable framerate
gb.waitForUpdate();
gb.display.clear();
gb.display.printf("Hello World %d!", picture_count++ );
}