-
Notifications
You must be signed in to change notification settings - Fork 641
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
Serial #52
Comments
I would love to test this. Can u please share the sketch? |
The sketch is a modified version of LedStripColorTester of the PololuLedStrip lib.
It receives a string with four integers, the number of the LED, and the values for RGB. I'm confident this is not the most efficient way to implement as we should only need to send 4 bytes. One byte for each int. I decided not to care too much about this optimization as with 8 LED's it seems to be working with no major problems. |
Do you have the python part? |
Yes. It's quite simple.
|
Where would that python code be written? In led.py? |
Do you have the rest of this? I would love to try implementing this a little better. |
Unfortunately, I don't have that code anymore but I don't think you need much more than what I've posted here, have you tried it following the posts? I don't have much time now, but if you have any problems I'll try to help as much as I can. Good luck! |
Hi Manuel, when I injected your snippet into the LedStripColorTester sketch, the I'm very new to working in Arduino, would you be able to explain what is needed to fix this? |
You'll have to define all those variables before using them, like |
I edited the code a bit so now it supports serial communication too.
I can't really test how efficient it is as I only have a small 8 LED ring (this is my first time testing the ws2812b chips).
If anyone is interested, I can make a pull request with the Arduino sketch and code modifications.
The text was updated successfully, but these errors were encountered: