Skip to content

Instantly share code, notes, and snippets.

@biomood
Created June 16, 2011 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save biomood/1030190 to your computer and use it in GitHub Desktop.
Save biomood/1030190 to your computer and use it in GitHub Desktop.
Hello World for the Gameduino
#include <SPI.h>
#include <GD.h>
void setup() {
// give time for the gameduino splash screen to be displayed
delay(2500);
GD.begin();
// load character set
GD.ascii();
// display the string
GD.putstr(0, 0, "Hello World");
// set the background colour to green
unsigned int bg_colour = RGB(0, 255, 0);
GD.wr16(BG_COLOR, bg_colour);
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment