Hello
I have problem connecting Pixy2 and PS2 gamepad using SPI with SS on arduino UNO.
When only one of these devices is connected on the arduino everything works.
When devices are connected at the same time, nothing work. Pixy 2 answers “No response” and the ps2 gamepad send always the same value.
I use two differents pins for SS, pin 10 for gamepad and 9 for Pixy 2.
-Reading Pixy2SPI_SS.h file, I see pixy2 is declared using Mode1 (the doc mention mode3?) SPI.beginTransaction(SPISettings(PIXY_SPI_CLOCKRATE, MSBFIRST, SPI_MODE1)); in open method.
_gamepad using a lower clockrate compared to pixy2.
-Pixy2 and gamepad init() method are declared in the setup
Does somebody know if one of the prevous can explain why these 2 devices don’t work togeteher in SPI mode.
PS: I have tried to connect Pixy2 in I2C and gamepad in SPI with SS and everything works. I would like to connect pixy in SPI to increase data transfer rate even if it works in I2C.
Thank you for your answer.
Jérome