Closed Meach closed 6 years ago
Hi @Meach, sorry for delay.
right now i'm traveling for work, return to the lab this weekend, i keep you updated!
Ciao Dario
Hi @kashimAstro, Thanks for answer. I am using wiringPi now instead and managed to make it work. Also looking at the wiringPi documentation, I believe my problem is here:
// Write the 3 data bits on channel 0 val = _spi.readWrite(0, (unsigned char *)data, 3);
I expect the value read to be returned with readWrite function, where data variable might be overwritten with the read data.
Hello,
I am trying to use the SPI with MCP23S08 (IO Expander). I tried with Arduino before to make sure my code works and I read/write the correct registers but I cannot make it work with the RPI.
I connected the chip as follow:
I also power the chip with +3.3V (pin 1)
Here is my code, can you spot something I am doing wrong?