evert-arias / EasyBuzzer

The Beep Library For Arduino
https://evert-arias.github.io/EasyBuzzer
MIT License
84 stars 22 forks source link

Cannot build with Nordic 52832 #20

Open LiveRock opened 2 years ago

LiveRock commented 2 years ago

Errors:

.pio/libdeps/nrf52_dk/EasyBuzzer/src/EasyBuzzer.cpp:82:2: error: 'noTone' was not declared in this scope noTone(mPin); ^~ .pio/libdeps/nrf52_dk/EasyBuzzer/src/EasyBuzzer.cpp: In member function 'void EasyBuzzerClass::update()': .pio/libdeps/nrf52_dk/EasyBuzzer/src/EasyBuzzer.cpp:149:3: error: 'tone' was not declared in this scope tone(mPin, mFreq); ^~~~ .pio/libdeps/nrf52_dk/EasyBuzzer/src/EasyBuzzer.cpp:149:3: note: suggested alternative: 'tanl' tone(mPin, mFreq); ^~~~ tanl .pio/libdeps/nrf52_dk/EasyBuzzer/src/EasyBuzzer.cpp:153:3: error: 'noTone' was not declared in this scope noTone(mPin); ^~ *** [.pio/build/nrf52_dk/lib1fa/EasyBuzzer/EasyBuzzer.cpp.o] Error 1 Indexing .pio/build/nrf52_dk/libFrameworkArduinoVariant.a lib/segLCD/segLCD.cpp: In function 'void HT162x_SendBits(uint16_t, uint8_t, boolean)': lib/segLCD/segLCD.cpp:45:44: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] uint16_t mask = LSB_FIRST ? 1 : 1 << bits-1;