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

How can I set light intensity? #79

Open
Arch-druid opened this issue Mar 5, 2022 · 1 comment
Open

How can I set light intensity? #79

Arch-druid opened this issue Mar 5, 2022 · 1 comment

Comments

@Arch-druid
Copy link

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
Copy link

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)   

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