Hello everyone,
I just learnt how the SPI protocol works, and wanted to try it out on a simulator before doing it on hardware. So, I wrote some code for communicating between two UNOs and tried to run it on Tinkercad.
The master sends an integer '10' and the slave sends an integer '20' back (well, at least that's what I want them to do). Then both of them print their received values over Serial. The SS pin (pin 10) on the master is set as an output and the one on the slave is hooked to...
[SOLVED] Can't get SPI to work on Arduino UNO (in a simulation)
I just learnt how the SPI protocol works, and wanted to try it out on a simulator before doing it on hardware. So, I wrote some code for communicating between two UNOs and tried to run it on Tinkercad.
The master sends an integer '10' and the slave sends an integer '20' back (well, at least that's what I want them to do). Then both of them print their received values over Serial. The SS pin (pin 10) on the master is set as an output and the one on the slave is hooked to...
[SOLVED] Can't get SPI to work on Arduino UNO (in a simulation)