uint16_t gb.getFreeRam()
gb.getFreeRam returns the amount of free RAM in bytes.
none
uint16_t: free RAM in bytes
#include <Gamebuino-Meta.h>void setup() { gb.begin(); }
void loop() { while(!gb.update()); gb.display.clear();
// fetch the amount of free RAM uint16_t ram = gb.getFreeRam(); gb.display.print("RAM:"); gb.display.println(ram); }