Download esp32/level1/buzzer_basic/src/main_esp.cpp from eunzee/PCEval: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/buzzer_basic/src/main_esp.cpp
- Command line
-
hf download hf://datasets/eunzee/PCEval/esp32/level1/buzzer_basic/src/main_esp.cpp
-
curl -L -o main_esp.cpp https://huggingface.co/datasets/eunzee/PCEval/resolve/main/esp32/level1/buzzer_basic/src/main_esp.cpp
238 Bytes
| /* | |
| Use a piezoelectric buzzer to play 262Hz tone. | |
| 4 APR 2025 by Blind Author | |
| */ | |
| const int BUZZER_PIN = 2; | |
| void setup() { | |
| pinMode(BUZZER_PIN, OUTPUT); | |
| } | |
| void loop() { | |
| tone(BUZZER_PIN, 262, 250); | |
| } | |