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.