|
Post by mindrage on May 15, 2014 5:29:42 GMT -8
Im having great problems with the SPI communication between multiple units. I've already made a thread at arduino Forums. Yet whatever i tried there hasn't worked at all. forum.arduino.cc/index.php?topic=239116So to be short. The display works very well independant when not connected to the WiFi Shield. When i did connect them together. nothing will work. Basically all the pins are correct, Its just the syncronization with the SPI. I wondered exactly how the GD Library handles these kind of things?
|
|
|
Post by jamesbowman on May 15, 2014 6:39:21 GMT -8
OK, this thread has some relevant information: gameduino2.proboards.com/search/results?what_at_least_one=resume&who_only_made_by=0&display_as=0I would suggest as a first step taking "hello world", and with the Wifi shield connected try to get "hello world" to run. Initialization should be like this: pinMode(PIN_WIFI, OUTPUT); pinMode(PIN_WIFI_SD, OUTPUT); digitalWrite(PIN_WIFI, HIGH); digitalWrite(PIN_WIFI_SD, HIGH);
GD.begin(~GD_STORAGE); If the above succeeds, then the next step is to get the Wifi shield talking. To do this, after the GD.begin(), initialize the Wifi shield. But each time you talk to the Wifi shield, "wrap" the call in GD.__end() and GD.resume() so that the GD library releases the SPI interface. J.
|
|
|
Post by mindrage on May 15, 2014 6:51:06 GMT -8
Okey, thanks, Will reply as soon as i tested it.
|
|