James Bowman 8f82933b57 New directory contrib/ | 6 lat temu | |
---|---|---|
contrib | 6 lat temu | |
converted-assets | 6 lat temu | |
examples | 6 lat temu | |
prep-chip8 | 8 lat temu | |
scripts | 6 lat temu | |
sdcard | 6 lat temu | |
transports | 6 lat temu | |
.gitignore | 6 lat temu | |
GD2.cpp | 6 lat temu | |
GD2.h | 6 lat temu | |
LICENSE | 9 lat temu | |
README.md | 6 lat temu | |
ard | 6 lat temu | |
checkout | 8 lat temu | |
keywords.txt | 9 lat temu | |
mk_bsod.py | 9 lat temu | |
publish | 6 lat temu | |
publish.py | 6 lat temu | |
version | 6 lat temu |
This is the source repository of the GD library - the software side of the Gameduino project. The installation library and instructions are at:
To build the release library Gameduino2.zip
run:
python publish.py
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