<< return to Pixycam.com

SPI functions (personal microcontroller)

I am currently working on getting code up and running to facilitate communication between the pixy and a personal microcontroller using SPI. I am using the provided code as framework and are running into several errors, specifically the getByte function which is not defined.

What are the requirements of the getByte function in terms of SPI communication? Any suggestions of how to approach writing this function? Thanks!

Hello Sally,
The getByte() function is the lowest-level function on your controller for doing SPI communication. With SPI, you send a byte while receiving a byte, like the transfer command in the Arduino.

http://arduino.cc/en/Reference/SPITransfer

Hope this helps!