Page 1 of 1

tone() problem

Posted: Fri Dec 08, 2017 11:32 pm
by microMind
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.

Re: tone() problem

Posted: Sun Dec 10, 2017 2:26 am
by paulvha
you have to #include <Tone.h>, but if you have done that. please share your code.

Re: tone() problem

Posted: Tue Dec 12, 2017 5:30 pm
by microMind
Hi. Thank you. I will look into your suggestion. Ill update you later.