No Description

James Bowman 38be056ab2 Clean up old scripts 6 years ago
contrib 8f82933b57 New directory contrib/ 6 years ago
converted-assets 36cb34602d import converted assets 6 years ago
examples 25269fc95e First reorg, new directory examples/ 6 years ago
prep-chip8 c3c5f16e95 Chip8 games demo 8 years ago
scripts 38be056ab2 Clean up old scripts 6 years ago
sdcard 1872ce9814 micro SD card standard contents 6 years ago
transports 54fdd44e95 Merge branch 'master' of github.com:jamesbowman/gd2-lib 6 years ago
.gitignore 38be056ab2 Clean up old scripts 6 years ago
GD2.cpp f4cb94cb27 Align loadptr for fromtext() and fromfile() 6 years ago
GD2.h e301fdc78b Add library.properties, version file 6 years ago
LICENSE eeb10494fb Initial commit 9 years ago
README.md db984a6dc3 Update README.md 6 years ago
keywords.txt 180a5a442b Initial import 9 years ago
mk_bsod.py a2f5900ada Script to create the BSOD graphic 9 years ago
version e301fdc78b Add library.properties, version file 6 years ago

README.md

gd2-lib

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

http://gameduino.com/code

To build the release library Gameduino2.zip run:

python publish.py

FAQ

How do I use GD with an 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 an 320x480 display?

There is a writeup here: http://excamera.com/sphinx/article-ili9488.html

How do I change the select pin assignments?

For the GPU select, modify #define CS at the start of transports/wiring.h

For the microSD select, modify #define SD_PIN at the start of GD2.cpp