In the first examples we got to know the GPIO pins as outputs, which we switched to HIGH to let an LED light up. But GPIO stands for General Purpose Input/Output. So you can also use the pins as input....
An RGB LED is the combination of three LEDs of different colors in one housing. The term RGB refers to the colors "red", "green" and "blue". The respective LEDs can be controlled with pulse width modulation (PWM)....