Hey I wonder if I could store detected blocks as objects in arduino. I don’t know if I would use it, but I’d like to know if that’s possible or not,
thx for your answers,
Butanium.
Hi Butanium,
I’m not sure I understand your question. If you’re using our Arduino examples, the block data is accessible in the pixy.ccc.blocks[] array, as described here: https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29#arduino-api
You can store that data anywhere you like using Arduino code…
Cheers,
Jesse
I know it’s accessible but I wonder if I could do something like :
block myBlock = pixy.ccc.blocks[1];
int myBlockSignature = myBlock.m_signature;
Yes, this should work!
The block thing exist? Because I just invented it to show what I wanted
If you include Pixy2.h, it should work - there is a Block struct in the header file.
Let me know how you make out!
Cheers,
Jesse