Ingen beskrivning

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

README.md

gd2-lib

Gameduino 2 library sources. To build the Arduino release 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