Hello,
I don't know if this should be in software forum or hardware but i
think it's a software question.
Can I2c & SPI be used at the same time, In PIC experience the same uart registers are used for both but you have to set the mode, either one or other, my setup is Duemilanove 328 with microVGA-TEXT connected to pins 8,9,10,11,12,13 performing SPI and Wireless Nunchuck adapter connected to pins analog 0 & 1 performing I2c.
The reason for my query is that in the time SPI uVGA is updating i loose I2c nunchuck adapter link briefly, what i end up with is bust's of nunchuck data instead of a continuos stream.
Hi Florinc, on Duemilanove 328 board it uses Analog 0 & 1
Hi Ran Talbott, i think your right but please in english, lol.
im going to have another go at it tonight, i notice the nunchuck has an INT pin whick might be worth investigating, wether it's a wakeup for nunchuck or for uController, i don't really understand interupts so well but we'll try
Thanks both for your replies
Out of interest, the Wii motionPlus seems to stream data as fast as i want it, what the difference between motionplus and nunchuck is i dont know with regards to streaming anyway
This library allows you to communicate with I2C / TWI devices. On most Arduino boards, SDA (data line) is on analog input pin 4, and SCL (clock line) is on analog input pin 5. On the Arduino Mega, SDA is digital pin 20 and SCL is 21.