Skip to content

Instantly share code, notes, and snippets.

@andypiper
Forked from biomood/GameDuino_HelloWorld.c
Created June 17, 2011 15:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andypiper/1031629 to your computer and use it in GitHub Desktop.
Save andypiper/1031629 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