Hi, I stumbled upon your tone libraries and they are great, but both I tested after playing a melody left humming sound in a speaker.With toneAC I solved it, with one noToneAC() afterwards, but this one I like better because it uses no timers - a part of bigger project, I need my timers... )So, this library has no command to turn sound off (right?), and I tried writing low digitally, (you can see it), it didn't help, so, what happens is:after playing a tune speaker buzzes quite low in frequency, and for some 10 seconds, then it goes silent for my delay of 2 seconds, starting all over.Any idea why this buzzing and why so long?
I came across your library while looking for a way to both play a buzzer and flash a neopixel. Your library is well done. What I would like to do is be able to take your library, but play my own song. For example my project I want to play Happy Birthday. I was attempting to use the following code:https://create.arduino.cc/projecthub/trduunze/piezo-happy-birthday-7ea362They are of course going about it in a complete different way then you. But I was thinking that taking their melody notes, and putting them in to replace your melody notes, would work. However, that gave me a song that was not Happy Birthday.Would I be right in thinking that it comes down to you dividing the notes by 1,000,000 and then a volume? This is what I see in your .h file. Any suggestions, or help would be greatly appreciated.Paul
Good day.I`m a happy user that your nice TimerFreeTone libray for years with several esp8266 projects, but now I need to update ESP core to lastest 2.4.2 release and your library seems have issues to compile propperly.When I try to compile arduino IDE raise several errors about it:
what can i do ?