<< return to Pixycam.com

Python Turning the lamp on and off


#1

I am trying to to turn on the lamp on my Pixy2 using python but I cannot find any documentation about how to do so. I know the C equivalent is pixy.setLamp(1,1).


#2

Jalexander19,

The Pixy2 Python interface is defined in the file: pixy_python_interface.cpp

The function call you should try in Python is called: set_lamp (Upper, Lower)

Cheers,
Z