Hello Greg,
Pixy2 uses a new serial protocol and a new Arduino library. The newest Arduino library for Pixy2 can be found here:
https://pixycam.com/downloads-pixy2/
There is a compatibility mode for the older protocol and library, which you found.
The new protocol has several improvements over the old protocol. In particular, it allows Pixy to return lots of different data types – such as the line tracking data.
Converting to the new library is straightforward – it only requires changing the include to “pixy2.h” and referring to the ccc object within the Pixy2 object:
Pixy2 pixy;
pixy.ccc.getBlocks();
Instead of
Pixy pixy;
pixy.getBlocks();
Refer to the ccc_hello_world example.
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29
Edward