Does not work on Mega
mvackel opened this issue · comments
Marcos Ackel commented
The lib seems to be directed to Atmega328 and ESP8266/32. It does not work on Mega2560.
To make it more general, I suggest the following change:
Line 69 (and simillarly on line 120):
#if defined __AVR_ATmega328P__
noTone(mPin);
#endif // !
#if defined ESP32
ledcDetachPin(mPin);
#endif // !
to:
#if defined ESP32
ledcDetachPin(mPin);
#else
noTone(mPin);
#endif // !
Evert Arias commented
@mvackel Hi!
Done! #7 Thank you for your collaboration 👍
https://github.com/evert-arias/EasyBuzzer/releases/tag/v1.0.3
Evert Arias commented
I will close this issue since it has been solved