File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ /* Copyright (c) 2021, Collab
2+ * All rights reserved
3+ */
4+ /*
5+ KY006_Buzzer.cpp - Control KY-006 passive piezo buzzer.
6+ */
7+
8+ #include " KY006_Buzzer.h"
9+
10+ KY006_Buzzer::KY006_Buzzer (int buzzer_pin) {
11+ _buzzerPin = buzzer_pin;
12+ }
13+
14+ void KY006_Buzzer::begin () {
15+ }
16+
17+ void KY006_Buzzer::enable () {
18+ }
19+
20+ void KY006_Buzzer::disable () {
21+ }
Original file line number Diff line number Diff line change 1+ /* Copyright (c) 2021, Collab
2+ * All rights reserved
3+ */
4+ /*
5+ KY006_Buzzer.h - Control KY-006 passive piezo buzzer.
6+ */
7+ #ifndef KY006_Buzzer_h
8+ #define KY006_Buzzer_h
9+
10+ #include < Arduino.h>
11+
12+ class KY006_Buzzer
13+ {
14+ public:
15+ KY006_Buzzer (
16+ int buzzer_pin
17+ );
18+ void begin ();
19+ void enable ();
20+ void disable ();
21+
22+ private:
23+ int _buzzerPin;
24+ };
25+
26+ #endif
You can’t perform that action at this time.
0 commit comments