File size: 1,101 Bytes
8e53a3e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | # LED RGB
## Project Description
This is a simple ESP32 project that turns on an RGB LED.
## Hardware Components
- ESP32 DevKit v1
- RGB LED
- 220Ω resistor * 3
## Circuit Description
The R, G, B pin of the RGB LED is connected to the pin5, pin4, pin2 pin of the ESP32 through a 220Ω current-limiting resistor. The common pin of the RGB LED is connected to 3V3.
## Expected Behavior
When the ESP32 powers up, it should:
1. Set pin5, pin4, pin2 pin mode to OUTPUT
2. Considering that the LED's common pin is connected to 3V3, turn on only the blue segment at full brightness.
## Success Criteria
The test is successful when:
1. Only the blue light of the RGB LED is fully on.
## Notes for Implementation
- Use Arduino.h library for arduino core.
- The LED should turn on immediately during setup and stay on
- No actions are required in the loop function
- The pin number used should match the circuit diagram
## Variants
This project may have different variants with the RGB LED connected to different pins.
## Attributes
- To use 220Ω resistor, set the property name "value" to "220 ohm". |