Tone() does not accept two arguments

Hello @johnsondavies, thanks for spotting this! it will be fixed in the next ESP core release.

If you feel OK with editing core files, you can fix it directly in your own installation: look in your Arduino15 folder for the file [edit: fixed path]

packages/arduino/hardware/esp32/2.0.11/cores/esp32/io_pin_remap.h

(what a mouthful!) and edit the line

#define tone(_pin, frequency, duration)     tone(digitalPinToGPIONumber(_pin), frequency, duration)

so it reads

#define tone(_pin, args...)                 tone(digitalPinToGPIONumber(_pin), args)