Components Used To Drive Passive Electromagnetic Buzzer
git submodule add git@github.com:myfreax/esp32-buzzer.git components/buzzer
#include "buzzer.h"
void app_main(void) {
ESP_ERROR_CHECK(buzzer_config(gpio_pin));
buzzer_once(100 * 1000);
}
The ESP32 Example Project demonstrates how to use IDF framework build application of reusable component