helloworld

The minimal program.

The loop() function draws 'Hello world' on a green background. The code

#include <EEPROM.h> //' A{
#include <SPI.h>
#include <GD2.h>

void setup()
{
  GD.begin();
}

void loop()
{
  GD.ClearColorRGB(0x103000);
  GD.Clear();
  GD.cmd_text(240, 136, 31, OPT_CENTER, "Hello world");
  GD.swap();
} //' }A