Hello,
Assuming you are using Arduino, bring up the ccc_hello_world program.
void loop()
{
int i;
// grab blocks!
pixy.ccc.getBlocks();
// If there are detect blocks, print them!
if (pixy.ccc.numBlocks)
{
Serial.print("Detected ");
Serial.println(pixy.ccc.numBlocks);
for (i=0; i<pixy.ccc.numBlocks; i++)
{
Serial.print(" block ");
Serial.print(i);
Serial.print(": ");
pixy.ccc.blocks[i].print();
}
}
}
Note, in this context you can refer to pixy.ccc.blocks[i].m_x for the x coordinate, ccc.blocks[i].m_y for the y coordinate, ccc.blocks[i].m_signature, ccc.blocks[i].m_width, ccc.blocks[i].m_height, etc. according to the API document here:
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:ccc_api
Hope this helps.
Edward