- Arduino (I used an UNO)
- 300Ω resistor x 3
- 1kΩ resistor x 2
- Male-to-Female jumper wires x 4
- Male-to-Male jumper wires x 10
- RGB LED
- Joystick
- Breadboard
When uploading, do not touch the Joystick, it'll mess up the color calculations.
Here is the formula I used to calculate the colors.
Huge thanks to SachaAlex for helping me figure out how the aforementioned formula works.