Skip to content

Commit 45a2aaa

Browse files
committed
changed header
1 parent 8e12e6a commit 45a2aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32/tone.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ usetocbot: true
2323

2424
On Arduino, the [`tone()`](https://www.arduino.cc/reference/en/language/functions/advanced-io/tone/) function generates a square wave of a specified frequency on a pin and is used to "play" tones on piezo buzzers or speakers; however, it is [famously unsupported](https://www.thomascountz.com/2021/02/21/arduino-tone-for-esp32) on the ESP32. In this lesson, we will provide some context about this problem and then show you how to play tones on the ESP32 using the [LEDC PWM library](https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-ledc.c), which we also used in our [ESP32 LED Fade lesson](led-fade.md).
2525

26-
## The tone problem
26+
## The ESP32 tone problem
2727

2828
The ESP32's Arduino library called [arduino-esp32](https://github.com/espressif/arduino-esp32/) attempts to mimic and/or directly replicate the functionality from [core Arduino](https://github.com/arduino/ArduinoCore-avr); however, as we saw in our [ESP32's LED Fade lesson](../esp32/led-fade.md), this is not always possible and key functions, like `analogWrite`, are different.
2929

0 commit comments

Comments
 (0)