Topic: rgb color - how to set pins?
It must be so simple i'm missing it? How do you set which pins to use for a rgb led strip?
Are there any examples for this?
tia
bjr
You are not logged in. Please login or register.
RemoteXY community → Need help → rgb color - how to set pins?
It must be so simple i'm missing it? How do you set which pins to use for a rgb led strip?
Are there any examples for this?
tia
bjr
Welcome,
The values of the color wheel are in the RemoteXY struct, you then use these values to do whatever you want.
Sorry, huh? I am looking for how to specify what pins to hook an rgb strip to. There is nothing for it in the online editor. So it must have to be added to the aruino sketch.
thanks
bjr
You probably want to use function analogWrite on whatever pins you want and with whatever values you want, either hardcoded or provided by RemoteXY's struct...
void loop()
{
analogWrite( pinRed, RemoteXY.valueRed );
analogWrite( pinGreen, RemoteXY.valueGreen );
analogWrite( pinBlue, RemoteXY.valueBlue );
...
}
Guillaume,
Thanks for the reply. Unfortunately I am just starting out with all of this so your response left me even more confused. I tried finding someone on fiverr to write what I needed, but that isn't working out either. So I just went with Blynk. It does leave me needing an internet connection, but at least i got it working. Perhaps in the future RemoteXY will have pin assignments like Blynk or someone has an example I can use.
thanks again
bjr
Learn how to control the led strip without RemoteXY or Blynk, and then it will be easy to add RemoteXY, if you want to try again
RemoteXY community → Need help → rgb color - how to set pins?
Powered by PunBB, supported by Informer Technologies, Inc.