Python API to set LED status Available???

Discussions and questions about the Crazyflie Nano Quadcopter
Post Reply
Cyientist
Beginner
Posts: 8
Joined: Mon Mar 16, 2015 12:12 pm

Python API to set LED status Available???

Post by Cyientist »

Is there a direct python API to set the LED ring expansion settings in our own python program ? Or is there a way to set like self._cf.SetLedStatus() or something similar
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Python API to set LED status Available???

Post by marcus »

Yes, you can use the parameters for setting the "headlight" and the LED-ring effect. You can also set custom patterns using the LED-ring memory.

Have a look at this example for setting parameters and this for setting the LED-ring memory via ZMQ.

The parameters you are interested in are ring.headlighEnable and ring.effect
Post Reply