File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 9
9
#include < Arduino_HS300x.h>
10
10
// #include <SE05X.h> // need to provide a way to change Wire object
11
11
12
+ #ifndef ARDUINO_API_VERSION
13
+ #define PinStatus uint8_t
14
+ #define HardwareI2C TwoWire
15
+ #endif
16
+
12
17
class ModulinoClass {
13
18
public:
14
19
void begin (HardwareI2C& wire = Wire1) {
@@ -145,13 +150,13 @@ class ModulinoBuzzer : public Module {
145
150
public:
146
151
ModulinoBuzzer (uint8_t address = 0xFF )
147
152
: Module(address, " BUZZER" ) {}
148
- void tone (size_t freq, size_t len_ms) {
153
+ void ( tone) (size_t freq, size_t len_ms) {
149
154
uint8_t buf[8 ];
150
155
memcpy (&buf[0 ], &freq, 4 );
151
156
memcpy (&buf[4 ], &len_ms, 4 );
152
157
write (buf, 8 );
153
158
}
154
- void noTone () {
159
+ void ( noTone) () {
155
160
uint8_t buf[8 ];
156
161
memset (&buf[0 ], 0 , 8 );
157
162
write (buf, 8 );
You can’t perform that action at this time.
0 commit comments