RGB LED and POT
RGB LED, Potentiometer, Mapping, Custom Function - rgbWrite(r,g,b)
This project uses an RGB LED and an analog sensor, in our case a potentiometer. Note, the pot can be replaced with any analog resistor, such as:
a flex sensor, soft pot, force sensitive,
resistor, etc.
We are also creating our own function called rgbWrite(r,g,b) to set the color of the RGB LED.