arvydas / blinkstick-python

BlinkStick Python interface to control devices connected to the computer
Other
136 stars 53 forks source link

How can I set light intensity? #79

Open Arch-druid opened 2 years ago

Arch-druid commented 2 years ago

Going through the API documentation and I am unable to determine the command that regulates light intensity of a single LED unit. Is there a way to access that feature or is it inaccessible currently with the capabilities of the Python API for the blinkstick?

dolikemedo commented 2 years ago

Hi! I got a similar effect like this: (if this is what you are looking for)

    while True:
        for i in range(0,255,5):
            bstick.set_color(red=i, green=0, blue=0)
            time.sleep(0.05)
        for i in range(255,0,-5):
            bstick.set_color(red=i, green=0, blue=0)
            time.sleep(0.05)