Open Wail3Y opened 5 years ago
When you say it "doesnt seem to work as intended", what exactly does it do?
From the looks of the code, it should be setting the first LED to match the color of the A key and the second LED should be the color of the B key. Is that not what's happening?
One thing to note though is that the local color that you are comparing against before sending the color is the same for both keys. You will need to store this color on a per-LED basis (if you are using each LED independently) which you probably want to do in an array.
It lights up the first three leds and three random others at the end of the strip and the colours don't match what I set in Aurora.
When I was just using only one led corresponding to only one key it was working fine.
Working with ws2812b strips and using serial communication is not recommended. During the update of the LEDs all interrupts are disabled. Hence the serial port won't receive anything during that time. To prevent this from happening you would have to implement a custom protocol like "XON XOFF".
I recently bought a 30 LED WS2812b strip and connected it to my arduino nano. I found a script that allows me to control my strip with Aurora but it can only send the colour of one key to the strip. I tried modifying it but it doesnt seem to work as intended. I'm a beginner at programming so I have no clue how to fix it. Thanks in advance.
Aurora script
Arduino code