in the case of the Arduino the SPI library doesn't support being a slave
So can I just shove data into the SPDR outside of an interrupt and have it send to the master?
Especially since an interrupt coming from the Pi is likely to flood the Arduino with so many interrupts it locks up and I don't get any data off of my sensors (been there, done that).
SPI.transfer (1); // give me temperaturebyte lowTemp = SPI.transfer (0); // receive low bytebyte highTemp = SPI.transfer (0); // receive high byteint temperature = (highTemp << 8) | lowTemp;
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16