ZabbixCube/src/SmartCube/cubeSound.h
2024-11-26 20:50:30 +01:00

5 lines
263 B
C

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
}