I want to change the colour on my LED ring by picking a colour on Processing. So, I pick a colour on Processing (e.g. RGB(255,0,0)) and Arduino takes these values and sends it to my LED ring.
I found a code online for the Processing part which I tweaked a bit, but now I am stuck on how to send those values to Arduino and then process them there so the LED ring changes colour.
I have 0 experience with Arduino, I do know you can use Firmata for this but that is as much as I know. I saw people doing this, but they used a RGB LED which had three inputs, but I only have one (digital in).
Firmatta is no use to you.
Simply send three bytes from Processing and pick them up with a serial read and then transfer them to your WS2812 buffer and get the library to show them.
I know that they could get out of sync but I have found this not to happen.
Look at Serial Input Basics - updated - Introductory Tutorials - Arduino Forum
Note the colour on an LED will not look exactly the same as on the screen. This is due, amongst other things, to the screen being gamma corrected and your LEDs not being.
Grumpy_Mike:
Firmatta is no use to you.
Simply send three bytes from Processing and pick them up with a serial read and then transfer them to your WS2812 buffer and get the library to show them.
I know that they could get out of sync but I have found this not to happen.
Look at Serial Input Basics - updated - Introductory Tutorials - Arduino Forum
Note the colour on an LED will not look exactly the same as on the screen. This is due, amongst other things, to the screen being gamma corrected and your LEDs not being.
Thanks for the reply, Grumpy_Mike!
I looked at the tutorial, I'll try to adjust the code so I can use it in my code. I don't really mind the colour shift or it being out of sync, I just want it to work! (: