|
Download esp32/level1/led_RGB_basic/description_esp.md from eunzee/PCEval: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/led_RGB_basic/description_esp.md
- Command line
-
hf download hf://datasets/eunzee/PCEval/esp32/level1/led_RGB_basic/description_esp.md
-
curl -L -o description_esp.md https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/led_RGB_basic/description_esp.md
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:
- Set pin5, pin4, pin2 pin mode to OUTPUT
- 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:
- 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".