Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setLamp not exposed to python #10

Open
spinkho21 opened this issue Feb 12, 2019 · 1 comment
Open

setLamp not exposed to python #10

spinkho21 opened this issue Feb 12, 2019 · 1 comment

Comments

@spinkho21
Copy link

It appears that the python API does not expose the setLamp method. We would like to use that from Python!

@johnleimon
Copy link
Contributor

spinkho21,

Check out the pixy_set_lamp_demo.py example in the pixy2/src/host/libpixyusb2_examples/python_demos folder for an example of using this method.

From pixy_set_lamp_demo.py :

pixy.set_lamp (1, 0);

The binding file that exposes the setLamp(...) method is pixy_python_interface.cpp which is located in the same folder.

From pixy_python_interface.cpp :

void set_lamp (int upper, int lower)
{
  pixy_instance.setLamp (upper, lower);
}

Cheers,
John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants