bdh
New Member
Posts: 5
|
Post by bdh on Jan 22, 2014 3:27:52 GMT -8
I'm looking to hook the Gameduino2 up to a DigiX but i'm not sure about their compatibility. Is there a more detailed pin out description to go with a PCB picture?
I've had a bit of a look around already but I can't find what i'm looking for but i'm sure it's out there. I've seen the circuit schematic but i'm a bit of a novice so i'm having trouble interpreting that.
If someone could point me at something so I can try and work out how to hook it up then that would be great!
|
|
|
Post by jamesbowman on Jan 22, 2014 8:32:40 GMT -8
|
|
bdh
New Member
Posts: 5
|
Post by bdh on Jan 22, 2014 15:17:26 GMT -8
Thanks, I think that is what I needed... Now I just need to wrangle my way through the compile errors...
|
|
bdh
New Member
Posts: 5
|
Post by bdh on Jan 23, 2014 5:17:24 GMT -8
It took me a while and I had to modify the GD2 library to make it compatible with DigiX so I could get it to run but I got there in the end! Thanks for the help Now on to something more interesting than "Hello world"...
|
|
manju
New Member
Posts: 2
|
Post by manju on Jan 26, 2014 15:05:40 GMT -8
Hi, I am trying to use the Gameduino2 with digix as well. What is the clock frequency we need to set it in the modified GD2 library, since Digix has a 84MHZ crystal? Can you let me know the default external EEPROM address location as well?
Thanks Manju
|
|
bdh
New Member
Posts: 5
|
Post by bdh on Jan 27, 2014 18:12:45 GMT -8
Sorry, I am a super novice at all this stuff and I didn't know I had to set that... or where I need to set that... so if you find out, please let me know! As to the EEPROM, I had the following const int EEPROM_addr = 0x50; And then I removed the old calibration sections and replaced it with this: #if CALIBRATION && defined(ARDUINO) Wire.begin(); // Serial.println(extEEPROMread(EEPROM_addr, 0)); if (extEEPROMread(EEPROM_addr, 0) != 0x7c) { self_calibrate(); for (int i = 0; i < 24; i++) extEEPROMwrite(EEPROM_addr, 1 + i, GDTR.rd(REG_TOUCH_TRANSFORM_A + i)); extEEPROMwrite(EEPROM_addr, 0, 0x7c); // is written! } else { for (int i = 0; i < 24; i++) GDTR.wr(REG_TOUCH_TRANSFORM_A + i, extEEPROMread(EEPROM_addr, 1 + i)); } // Serial.println(extEEPROMread(EEPROM_addr, 0)); #endif
You need to include the Wire.h and Extensive_EEPROM.h libraries. My plan was to have an EEPROM.h library that came with the GD2 library that referenced the DigiX Extensive_EEPROM.h libraray but I hadn't gotten around to it as I haven't had a lot of time to muck around with it yet and I was quite happy at this point when I could see stuff on the screen
|
|
manju
New Member
Posts: 2
|
Post by manju on Jan 28, 2014 22:31:20 GMT -8
Hi, Thanks for the EEPROM address clarification. I am able to compile the code for digix. I have to test it on the real hardware though. As for the clock frequency, I was referring to the SPI clock. I modified the code with the following fields: //SPI.setClockDivider(SPI_CLOCK_DIV64); SPI.setClockDivider(4,25); //SPI.setClockDivider(SPI_CLOCK_DIV2); SPI.setClockDivider(4,20); I have to verify if this fix works. Thanks for the briefing
|
|