Download esp32/level1/led_RGB_basic/src/main_esp.cpp from eunzee/PCEval: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/led_RGB_basic/src/main_esp.cpp
- Command line
-
hf download hf://datasets/eunzee/PCEval/esp32/level1/led_RGB_basic/src/main_esp.cpp
-
curl -L -o main_esp.cpp https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/led_RGB_basic/src/main_esp.cpp
330 Bytes
| /** | |
| Turns on a RGB LED connected to a specified pin. | |
| 3 APR 2025 by Blind Author | |
| */ | |
| const int R = 5; | |
| const int G = 4; | |
| const int B = 2; | |
| void setup() { | |
| pinMode(R, OUTPUT); | |
| pinMode(G, OUTPUT); | |
| pinMode(B, OUTPUT); | |
| analogWrite(R, 255); | |
| analogWrite(G, 255); | |
| analogWrite(B, 0); | |
| } | |
| void loop() { | |
| } | |