Just wondering how I can send data through SPI to the maxO module, and then read back which pins are set. I understand that there are methods which already do that but I was hoping to use SPI for this.
Here is my configuration that I wrote (which I also believe doesn’t work). Any help would be very beneficial.
using Gadgeteer.Interfaces; GT.Socket _socket = GT.Socket.GetSocket(6, true, null, null); ConfigSPI = new SPI.Configuration(false, 0, 0, false, true, 1000); SPI MySPI = new SPI(_socket, ConfigSPI, SPI.Sharing.Shared, maxO);
I am using the Spider board and I connected the maxO module to socket 6.