tone() problem

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!

Moderator: phalanx

Post Reply
microMind
Posts: 2
Joined: Fri Dec 08, 2017 11:22 pm

tone() problem

Post by microMind » Fri Dec 08, 2017 11:32 pm

Greetings,
I am experimenting with the ESP32 dev kit. My conclusion is to trigger an alarm using a piezo buzzer. I've attempted to to use the Arduino reference example of the tone() function but everytime i compile i get an error stating the tone() function is not declared properly. Is there a library that i am missing. This happens whether its a complex sketch capable of darth vaders march or a simple 2 to 4 line sketch. Any help, explanation, suggestion welcome. Thanks in advance.

paulvha
Posts: 198
Joined: Sat Nov 11, 2017 2:39 am

Re: tone() problem

Post by paulvha » Sun Dec 10, 2017 2:26 am

you have to #include <Tone.h>, but if you have done that. please share your code.

microMind
Posts: 2
Joined: Fri Dec 08, 2017 11:22 pm

Re: tone() problem

Post by microMind » Tue Dec 12, 2017 5:30 pm

Hi. Thank you. I will look into your suggestion. Ill update you later.

Post Reply