Sen descrición

James Bowman 36cb34602d import converted assets %!s(int64=6) %!d(string=hai) anos
contrib 8f82933b57 New directory contrib/ %!s(int64=6) %!d(string=hai) anos
converted-assets 36cb34602d import converted assets %!s(int64=6) %!d(string=hai) anos
examples 25269fc95e First reorg, new directory examples/ %!s(int64=6) %!d(string=hai) anos
prep-chip8 c3c5f16e95 Chip8 games demo %!s(int64=8) %!d(string=hai) anos
scripts 25269fc95e First reorg, new directory examples/ %!s(int64=6) %!d(string=hai) anos
sdcard 1872ce9814 micro SD card standard contents %!s(int64=6) %!d(string=hai) anos
transports 54fdd44e95 Merge branch 'master' of github.com:jamesbowman/gd2-lib %!s(int64=6) %!d(string=hai) anos
.gitignore 3fde9db5cc Ignore tmp files %!s(int64=6) %!d(string=hai) anos
GD2.cpp f4cb94cb27 Align loadptr for fromtext() and fromfile() %!s(int64=6) %!d(string=hai) anos
GD2.h e301fdc78b Add library.properties, version file %!s(int64=6) %!d(string=hai) anos
LICENSE eeb10494fb Initial commit %!s(int64=9) %!d(string=hai) anos
README.md db984a6dc3 Update README.md %!s(int64=6) %!d(string=hai) anos
ard 58b9ebc3b4 Command-line builder %!s(int64=6) %!d(string=hai) anos
checkout bfbf0acaef mkino build/upload options. checkout script %!s(int64=8) %!d(string=hai) anos
keywords.txt 180a5a442b Initial import %!s(int64=9) %!d(string=hai) anos
mk_bsod.py a2f5900ada Script to create the BSOD graphic %!s(int64=9) %!d(string=hai) anos
publish 842cd821e6 Check that the public version matches the zip %!s(int64=6) %!d(string=hai) anos
publish.py 8f82933b57 New directory contrib/ %!s(int64=6) %!d(string=hai) anos
version e301fdc78b Add library.properties, version file %!s(int64=6) %!d(string=hai) anos

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