PCEval / esp32 /level1 /led_RGB_basic /description_esp.md
eunzee's picture
upload Arduino Uno and ESP32 project files
8e53a3e verified
|
Raw History Blame Contribute Delete
1.1 kB
# 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".