My 13yrs old son and myself are making a cube solving robot. We have written the algorithm to solve the cube and built the lego robot to turn the faces and it can solve a cube if by hand we input the colors on each face. we want to use pixy to read all the colors on each face. We are programing in Small basic and using the lego brick to run the program.
We have able to communicate with pixy in 2 different ways. We can install the lego firmware on pixy then using the function sensor.communicateI2C we can write 0x51 through to 0x57 at address 1. this will read the largest object of each color but often there can be more than 1 object of the same colour and we can’t read the second object of same colour.
The other way we can communicate to pixy is install standard firmware and use the sensor.communicateI2C function and it returns 16 byte that will have info just about the first object only.
How can I read multi object of same color?