RGBLED
Hello everyone! My name is Onindo, and today I am excited to show you my RGB LED project. My project uses two switches to control different colors of an RGB LED. When both switches are off, the LED glows white. When only one switch is on, the LED changes to yellow. When both switches are on, the LED glows magenta. I used digital pins and an AND condition in my code. I learned that the AND operator requires both conditions to be true, while the OR operator needs at least one condition to be true. I also learned how red, green, and blue connect to different pins.
Attend our in-person Robotics & Math