-
-
Save andypiper/1031629 to your computer and use it in GitHub Desktop.
Hello World for the Gameduino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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