I am using pixy for the first time, and one thing I noticed is when I call pixy.ccc.getblocks(), it takes really long time to execute. First time I took time it took 16 ms, and trying out the same code later, it gave me time of about 50 ms. I guess it is not supposed to take this long? Am I timing it correctly and is there something I can do to fix this? Code below:
#include <Pixy2.h>
Pixy2 pixy;
unsigned long loopTime;
void setup() {
Serial.begin(115200);
pixy.init();
}
void loop() {
Serial.println(millis() - loopTime);
loopTime = millis();
pixy.ccc.getBlocks();
}