I have a question about TWI and interrupts. I am using an arduino to read data from a Wiimote over TWI. I have that working fine. The problem is, if I have the arduino do some other processing, it looses its connection to the wiimote. Here is an example, the wiimote sends some data to the arduino, say the number 5, I have the arduino blink an led for 5 seconds. After that the wiimote won't send anymore data (or the arduino won't read it, not sure which).
Is there a way to have the arduino always read TWI when data is available? Basically I want to make TWI take priority over my other processing. I was wondering if there was some way to do this with interrupts?