In this paragraph, we will modify the previous project and we will see how to control peripherals connected to Android Things. In more details, we will control the RGB led color using the three buttons. Each button controls a color (Red, Green, and Blue), so that when you press one button, Android Things turns on and off the corresponding color on the RGB led. To create this project, you need:
- Wire jumpings
- Resistors (200Ohm, 10Kohm)
- Three buttons
The following image shows the button that we will use in the project:
The following image shows a 1 RGB Led: