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 99#include < Arduino_HS300x.h>
1010// #include <SE05X.h> // need to provide a way to change Wire object
1111
12+ #ifndef ARDUINO_API_VERSION
13+ #define PinStatus uint8_t
14+ #define HardwareI2C TwoWire
15+ #endif
16+
1217class ModulinoClass {
1318public:
1419 void begin (HardwareI2C& wire = Wire1) {
@@ -145,13 +150,13 @@ class ModulinoBuzzer : public Module {
145150public:
146151 ModulinoBuzzer (uint8_t address = 0xFF )
147152 : Module(address, " BUZZER" ) {}
148- void tone (size_t freq, size_t len_ms) {
153+ void ( tone) (size_t freq, size_t len_ms) {
149154 uint8_t buf[8 ];
150155 memcpy (&buf[0 ], &freq, 4 );
151156 memcpy (&buf[4 ], &len_ms, 4 );
152157 write (buf, 8 );
153158 }
154- void noTone () {
159+ void ( noTone) () {
155160 uint8_t buf[8 ];
156161 memset (&buf[0 ], 0 , 8 );
157162 write (buf, 8 );
You can’t perform that action at this time.
0 commit comments