summaryrefslogtreecommitdiff
path: root/lib/buzzer/buzzer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/buzzer/buzzer.h')
-rw-r--r--lib/buzzer/buzzer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/buzzer/buzzer.h b/lib/buzzer/buzzer.h
new file mode 100644
index 0000000..f71a90a
--- /dev/null
+++ b/lib/buzzer/buzzer.h
@@ -0,0 +1,14 @@
+#include <Arduino.h>
+#include "settings.h"
+
+#pragma once
+
+class BUZZER
+{
+public:
+ BUZZER();
+
+ void playTone(uint16_t frequency, uint32_t duration = 0);
+ void stop();
+ void playMelody(const uint16_t melody[][2], size_t length);
+};