<< return to Pixycam.com

Issue with Arduino Due

Hi all,

I tried to use the hello world example with arduino due and when I try to verify the code I have this error:

In member function ‘void LinkSPI::init(uint8_t)’:
error: ‘SPI_CLOCK_DIV16’ was not declared in this scope

The macro is #define SPI_CLOCK_DIV16 0x01

After investigation, I found the Macro for ATSAM SPI was different

#define SPI_MODE1 0x01

Do you have a solution more elegant than an addition of the macro to the file Pixy.h ?

Fabien

Hi Fabien,

We’re currently working on a fix for the Due, and it should be out shortly.

Thanks!

Scott

I think this topic will be very usefull for you :slight_smile:
http://forum.arduino.cc/index.php?topic=128520.0

Fabien