<< return to Pixycam.com

SPI communication

Hello, I am used SPI with SS interface talking to Pixy2 then used getVersion command to testing communication. My question is why Pixy2 every time feedback always had a lot of invalid byte in front of message see below diagram? I just want to know my Pixy2 device that operation is correct and how can I resolve this problem?

Hello,
I’m not sure, but the code just looks for the start code (0xc1af) to see when valid data arrives. In other words, you should ignore data before the start code.

Hope this helps.

Edward