gb.begin

DESCRIPTION

void gb.begin()

gb.begin() initializes the Gamebuino. It should be called once at the beginning of the setup() function, followed by gb.titleScreen() and gb.pickRandomSeed().

Parameters

none

Returns

none

Example

#include <Gamebuino-Meta.h>

void setup(){
  // initialize the Gamebuino object
  gb.begin();
}

void loop(){
  if(gb.update()){
    gb.display.clear();
    gb.display.println("Hello world");
  }
}