Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By questuk
#31635 Hi

Have spent an hour trying to solve this and looked on the internet.

When i add this #include <Tone.h> i get a fatal error.

'libraries\Tone\Tone.cpp:24:27: fatal error: avr/interrupt.h: No such file or directory #include <avr/interrupt.h>'

But I am not sure if the Tone library has been implemented on the ESP8266 ?

Any help would be appreciated.

Regards

Gary
User avatar
By DAFlippers
#31651 Hi Gary,

I just tried it and I can confirm the tone function is not working.

I checked I had the correct pin by toggling it and tried setting it to an output before calling tone. Pin remains high when tone function called.

It would be worth posting in Bug Report viewforum.php?f=28.

David