<< return to Pixycam.com

Setting condition for height - pixymon arduino uno

how do i know which is the variable i can use to set condition for the pixymon program for the height.

Hi Kenneth,

Have you tried looking at the examples, such as “this”:https://github.com/charmedlabs/pixy/blob/master/arduino/libraries/Pixy/examples/hello_world/hello_world.ino one? We iterate through the blocks and access each one on line 56 with @pixy.blocks[j]@. Instead of using the @print()@ function, like we do in this example, you can access the height of the block with @pixy.blocks[j].height@, which can be used in your conditional statement.

Is this what you were looking for?

Scott