ZabbixCube/src/SmartCube/cubeSound.h

5 lines
263 B
C
Raw Normal View History

2024-11-26 19:50:30 +00:00
void beep(int buzz) {
tone(PIN_BUZZER, buzz, 100); // Generate a tone on the buzzer at the specified frequency for 100 ms
delay(100); // Wait for the tone to finish playing
noTone(PIN_BUZZER); // Stop the tone on the buzzer
}