Gameduino/Hello World

From Hackerspace Brussels
Jump to: navigation, search

First thing is to load the ASCII characters. You can do that with the GD.ascii(); call. Then, you can use the GD.putstr(int x, int y, const char *s) call to write a string somewhere on the screen.

void setup() {
  GD.begin();

  GD.ascii();

  GD.putstr(0, 0, "Hello world");
}

void loop() {
}