void gb.save.config( [uint16_t blocks ,] const SaveDefaults* defaults [, uint16_t numDefaults] )
gb.save.config will configure gb.save with defaults. You can also specify the number of blocks the savefile should have. The length of the defaults array is autodetermined, if possible. If it fails to compile specify the length manually.
none
#include <Gamebuino-Meta.h>const SaveDefaults defaults[] = { { 0, SAVETYPE_INT, 9999, 0 }, };
void setup() { gb.begin();
// set the save defaults gb.save.config(defaults); }
void loop() {
}