cpat
New Member
Posts: 8
|
Post by cpat on Jul 26, 2018 12:47:45 GMT -8
Hi everyone,
I know the SD card issue has already been discussed here. I'm trying to log data while using gameduino. I tried to use another SD card with a different wiring AND using SDfat Library on software SPI.
Even using this: GD.__end(); GD.resume();
I thought it would work but still not... What is blocking the SPI communications ?
|
|
|
Post by jamesbowman on Jul 26, 2018 12:54:32 GMT -8
You need to wrap up every "foreign" SPI operation inside "__end" and "resume". So as a general pattern. GD.__end(); <anything with SDfat> GD.resume(); This includes initialization etc. I have added an feature issue to GD2-lib for an SDfat example: github.com/jamesbowman/gd2-lib/issues/27
|
|
cpat
New Member
Posts: 8
|
Post by cpat on Jul 28, 2018 1:19:39 GMT -8
Thanks it works now.
Next step for me: using an external SPI flash chip. Hope it will not interfere using "GD.__end();"
|
|