Нема описа

James Bowman e301fdc78b Add library.properties, version file пре 6 година
converted-assets 5eaac5d8a9 Circular gradients example пре 6 година
ino-cobra.ino 180a5a442b Initial import пре 9 година
prep-chip8 c3c5f16e95 Chip8 games demo пре 8 година
scripts e301fdc78b Add library.properties, version file пре 6 година
sdcard 1872ce9814 micro SD card standard contents пре 6 година
transports 54fdd44e95 Merge branch 'master' of github.com:jamesbowman/gd2-lib пре 6 година
.gitignore 3fde9db5cc Ignore tmp files пре 6 година
GD2.cpp f4cb94cb27 Align loadptr for fromtext() and fromfile() пре 6 година
GD2.h e301fdc78b Add library.properties, version file пре 6 година
LICENSE eeb10494fb Initial commit пре 9 година
README.md db984a6dc3 Update README.md пре 6 година
apitest.ino a3276e49c8 Implementation and test for textsize() пре 6 година
ard 58b9ebc3b4 Command-line builder пре 6 година
blobs.ino 59bf8a4bae Fix 'logo', 'blobs' and 'kenney' use of 'xy' type. #7 пре 8 година
bringup0.ino abf344f622 Tiny bringup sketch for people with DIY hardware пре 6 година
checkout bfbf0acaef mkino build/upload options. checkout script пре 8 година
chess.ino 2bcdeb454e Fixes for ESP8266 gcc пре 6 година
chip8.ino c3c5f16e95 Chip8 games demo пре 8 година
circular.ino eb04f27d6d Remove debug пре 6 година
cobra.ino 2bcdeb454e Fixes for ESP8266 gcc пре 6 година
cube.ino c6ad29921a Add a check that there is no dumpscreen in any published .ino пре 6 година
cube2.ino c6ad29921a Add a check that there is no dumpscreen in any published .ino пре 6 година
dht.ino 5149d10ad6 DHT reading data пре 6 година
examples.ino b9f992a75d DUMPDEV throughout пре 9 година
fizz.ino 3d94b99efa Resolution independence for fizz пре 8 година
fonts.ino 180a5a442b Initial import пре 9 година
formats.ino 180a5a442b Initial import пре 9 година
frogger.ino 59f3a25aa9 Avoid 'time' because of clash on Due пре 8 година
glow.ino 180a5a442b Initial import пре 9 година
helloworld.ino ff7ac5ada9 Resolution independence пре 8 година
ili9488.ino 20a9974bee Alive, ME810A-HV35R running пре 6 година
invaders.ino 27fba17bc8 Use GD.random() пре 8 година
jnr.ino bd40f2e055 Minor sketch cleanups пре 8 година
jpeg.ino 6037a1e128 Avoid safeload in jpeg. пре 9 година
jpeg2.ino 180a5a442b Initial import пре 9 година
kenney.ino 0ff0a25c6a Use GD2's xy class. пре 8 година
keywords.txt 180a5a442b Initial import пре 9 година
lines.ino 180a5a442b Initial import пре 9 година
logo.ino 59bf8a4bae Fix 'logo', 'blobs' and 'kenney' use of 'xy' type. #7 пре 8 година
mk_bsod.py a2f5900ada Script to create the BSOD graphic пре 9 година
mkino bfbf0acaef mkino build/upload options. checkout script пре 8 година
mono.ino 180a5a442b Initial import пре 9 година
nightstrike.ino c6ad29921a Add a check that there is no dumpscreen in any published .ino пре 6 година
noisy.ino 674668c1b9 Display digit as it is spoken пре 8 година
publish 842cd821e6 Check that the public version matches the zip пре 6 година
publish.py e301fdc78b Add library.properties, version file пре 6 година
radarchart.ino 180a5a442b Initial import пре 9 година
reflection.ino 180a5a442b Initial import пре 9 година
selftest.ino e301fdc78b Add library.properties, version file пре 6 година
simon.ino b9f992a75d DUMPDEV throughout пре 9 година
sketch.ino c0b220f087 'sketch' resolution independent пре 8 година
slotgag.ino 180a5a442b Initial import пре 9 година
song.ino 180a5a442b Initial import пре 9 година
sprites.ino 180a5a442b Initial import пре 9 година
tempest.ino 180a5a442b Initial import пре 9 година
tiled.ino 180a5a442b Initial import пре 9 година
tilt.ino 180a5a442b Initial import пре 9 година
tut-bitmaps.ino 01f4fe274a Text orientation sample code fixes #11 пре 6 година
version e301fdc78b Add library.properties, version file пре 6 година
video1.ino bd083107c7 video playback examples #15 пре 6 година
video2.ino 73c1ba3e34 Clean up code examples, update publish list for GD3 пре 6 година
viewer.ino bd40f2e055 Minor sketch cleanups пре 8 година
walk.ino 15950baafd Whitespace пре 8 година
welcome.ino cec46af075 welcome sketch for ESP8266 пре 6 година
widgets.ino d7c9249bd6 Clean up widgets sample пре 9 година

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