-
Notifications
You must be signed in to change notification settings - Fork 61
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
RGB Light Patterns #9
Comments
We can add a blacklight update function after
Another way is moving backlight into circuitpython firmware. Use timer's callback to update the backlight. It will be better, but will take more time to implement. |
I have been doing some initial playing around with this. Initially just playing around with adding the lines self.backlight.pixel(key, 0xFF, 0x00, 0x00)
self.backlight.update() at this line python-keyboard/keyboard/__init__.py Line 430 in 8d184d9
I'm having some weird behavior depending on where I put something like |
The 7th bit of |
Do you mean what was happening in this line? Or should I be doing it again? python-keyboard/keyboard/__init__.py Line 425 in 8d184d9
|
Oh, not need to do it again. I don't see any difference when putting I tried to replace the
Do you mind to create a branch to share your code? So I can check it. |
It turned out to be another issue. I was able to fix it. I am currently using something similar to what you put except a check to see if it's the spacebar and in that case light up all 3 LEDs (56, 61, 62) and it's working great and the latency while it went up isn't noticeable during use (7 nanoseconds) |
I just opened up a PR with the current state of this development (#10) |
I have been playing around with the
Backlight
API and I have had success turning on all the colors and making some simple patterns. Although I haven't figured out how to get the patterns running in the background. Is there any way to do this currently? To have some small code that generates a pattern to change the lights while the keyboard stays functional. Or even a way to program lighting as a reaction to pressing a key?The text was updated successfully, but these errors were encountered: