|
Post by cejasmasmas on Oct 31, 2014 8:55:05 GMT -8
Hi, first thank you!!!! for a Great!! Shield!!! awesome!!, next the GD2 libraries do work with the Arduino Due, its actually very easy to make them work, the flashstorage lib, mentioned here also works, all you have to do is comment this line out
SPSR = (1 << SPI2X);
this in the wiring.h folder (also comment it the other files)
//SPSR = (1 << SPI2X); and set SPI.setClockDivider(5); (just above in the same file)
and for the flash storage in GD2.cpp include #include <DueFlashStorage.h>
DueFlashStorage dueFlashStorage; //if (EEPROM.read(0) != 0x7c) { if (dueFlashStorage.read(0) != 0x7c) { self_calibrate(); // for (int i = 0; i < 24; i++) Serial.println(GDTR.rd(REG_TOUCH_TRANSFORM_A + i), HEX); for (int i = 0; i < 24; i++) //EEPROM.write(1 + i, GDTR.rd(REG_TOUCH_TRANSFORM_A + i)); dueFlashStorage.write(1 + i, GDTR.rd(REG_TOUCH_TRANSFORM_A + i)); //EEPROM.write(0, 0x7c); // is written! dueFlashStorage.write(0, 0x7c); // is written! } else { for (int i = 0; i < 24; i++) //GDTR.wr(REG_TOUCH_TRANSFORM_A + i, EEPROM.read(1 + i)); GDTR.wr(REG_TOUCH_TRANSFORM_A + i, dueFlashStorage.read(1 + i)); }
and everything should work, I've test a few examples that come with the lib and they work, great work!! great Shield!! great lib, just be carefull to connect to the right spi pins in the center of the board (only ones?) if you need a video proving this you'll have to wait or you can test it yourself its easy just make a copy of the original lib
Regards!!
|
|
|
Post by cejasmasmas on Oct 31, 2014 15:16:02 GMT -8
Arduino DUE Gameduino 2, video sorry about the ads but only service I found that, didn't have to register vid.me/kkf
|
|
rob
New Member
Posts: 2
|
Post by rob on Jan 21, 2015 5:03:46 GMT -8
as i staed as guest (ramon schepers), the arduino due works with the gameduino 2 here is a working library with software SPI on the correct pins, so you can plug the gameduino2 directly onto the arduino due (since the gameduino2 is all 3,3V you don't have to worry about voltage levels) note: please keep the credits of the pix-os dev team. download of the library with the helloword example: www.dropbox.com/s/odp43v1kzxn7fhl/ft800_due_softspi.zip?dl=1yours, Laurens Weyn & Ramon Schepers. I too am trying to get my gameduino working with a due (actually, an udoo). Any chance this link of the helloworld example could be reposted? It's expired.
|
|
Pix-OS
Junior Member
Posts: 11
|
Post by Pix-OS on Jan 21, 2015 11:08:41 GMT -8
as i staed as guest (ramon schepers), the arduino due works with the gameduino 2 here is a working library with software SPI on the correct pins, so you can plug the gameduino2 directly onto the arduino due (since the gameduino2 is all 3,3V you don't have to worry about voltage levels) note: please keep the credits of the pix-os dev team. download of the library with the helloword example: www.dropbox.com/s/odp43v1kzxn7fhl/ft800_due_softspi.zip?dl=1yours, Laurens Weyn & Ramon Schepers. I too am trying to get my gameduino working with a due (actually, an udoo). Any chance this link of the helloworld example could be reposted? It's expired. new link www.dropbox.com/s/ap7vlg2r3hfm3wi/ft800%20software%20spi%20due.zip?dl=0
|
|
rob
New Member
Posts: 2
|
Post by rob on Jan 22, 2015 23:55:11 GMT -8
|
|
Pix-OS
Junior Member
Posts: 11
|
Post by Pix-OS on Jan 24, 2015 1:44:04 GMT -8
no problem
|
|
|
Post by powersoft on Jul 8, 2015 1:12:20 GMT -8
|
|
Pix-OS
Junior Member
Posts: 11
|
Post by Pix-OS on Jul 8, 2015 10:41:28 GMT -8
i wonder why people are still interested in our code, as it doesn't support image loading to the FT800 gpu, but anyway, code is up again, as it was accidentally deleted: www.dropbox.com/s/1mkdhrxst2tac9m/GD2_Due.zip?dl=0note: it might contain some design flaws, so we sugges to use to update the original code as in the first post of the second page in this thread.
|
|
|
Post by Jan on Jul 9, 2015 0:00:16 GMT -8
The reason I won't to test the code is that I need the DUE for 32 Bits floating point calculations. I'm working on a Planetarium, and for the calculations I need this 32 Bit floating point. (Only available on DUE)
And in case of this code it is interesting that the SPI is done by software, zo the shield could direct plug in the DUE.
I hope in the future that the original software will be able to do the software SPI.
Cheers,
Jan Kromhout Hellevoetsluis-NL
|
|
|
Post by jamesbowman on Jul 9, 2015 9:18:43 GMT -8
Hmm, the Arduino does have 32-bit floating point. Did you mean 64-bit floating point?
|
|
|
Post by powersoft on Jul 10, 2015 1:49:01 GMT -8
Thank, yes I mean 64 bit floating point.
Is there some experience connecting to the Due, except mentiod in the post above?
|
|
|
Post by powersoft on Jul 10, 2015 5:24:08 GMT -8
i wonder why people are still interested in our code, as it doesn't support image loading to the FT800 gpu, but anyway, code is up again, as it was accidentally deleted: www.dropbox.com/s/1mkdhrxst2tac9m/GD2_Due.zip?dl=0note: it might contain some design flaws, so we sugges to use to update the original code as in the first post of the second page in this thread. Tanks, I have two questions. 1. Can I use the GD2_Due lib without what is mention in your note? 2. Can I use sprites with your GD2_Due lib?
|
|
Pix-OS
Junior Member
Posts: 11
|
Post by Pix-OS on Jul 12, 2015 10:37:25 GMT -8
1: yes you can 2: sadly no, i can try to update the code for you if desired
|
|
|
Post by powersoft on Jul 20, 2015 10:57:44 GMT -8
1: yes you can 2: sadly no, i can try to update the code for you if desired Please can you try to update the code. It should be great, a complete working DUE with GD2 Jan Kromhout Hellevoetsluis-NL
|
|
|
Post by jamesbowman on Jul 21, 2015 6:18:19 GMT -8
Hi Jan, There was an announcement in another thread last week. The GD2 library now runs on Due. There are now hardware modifications required. The Due version of the library is at excamera.com/files/Gameduino2_Due.zipIt is tested with IDE 1.6.5. It would be great if Due owners could try it and report results. Thanks.
|
|