Sin descripción

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

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