No Description

James Bowman f5a50ac60e Show Travis build status 4 years ago
contrib 28cbb27dfd Stand-alone GD3 ROM loader 4 years ago
converted-assets d2a6f0e911 GD3VGA updated. 4 years ago
examples 1287d6905e Clean compile on rPi 4 years ago
pc 67e53292df Merge branch 'master' of 4 years ago
scripts 7ae318df73 Travis CI attempt 4 years ago
sdcard 1872ce9814 micro SD card standard contents 5 years ago
transports 67e53292df Merge branch 'master' of 4 years ago
.gitignore 38be056ab2 Clean up old scripts 5 years ago
.travis.yml c768be6e16 fix typo 4 years ago
GD2.cpp d85a0679d5 SPIDriver port running 4 years ago
GD2.h b8f90ae5e3 More warnings cleanup 4 years ago
LICENSE eeb10494fb Initial commit 8 years ago f5a50ac60e Show Travis build status 4 years ago
version e59ec423e4 Version bump 5 years ago


This is the source repository of the GD library - the software side of the Gameduino project. The installation library and instructions are at:

Build Status

To build the release library run:



How do I use GD with a 800x480 display?

After calling GD.begin() you can set the scanout registers for 800x480 like this:

GD.wr16(vc.REG_HCYCLE, 928);
GD.wr16(vc.REG_HOFFSET, 88);
GD.wr16(vc.REG_HSIZE, 800);
GD.wr16(vc.REG_HSYNC0, 0);
GD.wr16(vc.REG_HSYNC1, 48);
GD.wr16(vc.REG_VCYCLE, 525);
GD.wr16(vc.REG_VOFFSET, 32);
GD.wr16(vc.REG_VSIZE, 480);
GD.wr16(vc.REG_VSYNC0, 0);
GD.wr16(vc.REG_VSYNC1, 3);
GD.wr16(vc.REG_CSPREAD, 1);
GD.wr16(vc.REG_DITHER, 1);
GD.wr16(vc.REG_PCLK_POL, 0);
GD.wr16(vc.REG_PCLK, 4);

How do I use GD with a 320x480 display?

There is a writeup here:

How do I change the select pin assignments?

To change the GPU select from pin 8, modify #define CS at the start of transports/wiring.h

To change microSD select from pin 9, modify #define SD_PIN at the start of GD2.cpp

How do you run in portrait mode?

After calling GD.begin() set the orientation like this::


to enter portrait mode. The argument controls orientation, 0 and 1 are landscape. 2 and 3 are portrait.