https://github.com/myfreax/esp32-buzzer
Passive Buzzer Component For ESP32
https://github.com/myfreax/esp32-buzzer
Last synced: 2 months ago
JSON representation
Passive Buzzer Component For ESP32
- Host: GitHub
- URL: https://github.com/myfreax/esp32-buzzer
- Owner: myfreax
- Created: 2023-04-12T01:38:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-12T10:15:13.000Z (10 months ago)
- Last Synced: 2024-07-12T11:48:58.340Z (10 months ago)
- Language: C
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP32 Buzzer Component
Components Used To Drive Passive Electromagnetic Buzzer## Dependences
- [ESP32 Timer Component](https://github.com/myfreax/esp32-timer)## Usage
```
git submodule add [email protected]:myfreax/esp32-buzzer.git components/buzzer
```
```c
#include "buzzer.h"void app_main(void) {
ESP_ERROR_CHECK(buzzer_config(gpio_pin));
buzzer_once(100 * 1000);
}
```
## Example
The [ESP32 Example Project](https://github.com/myfreax/esp32-example-project) demonstrates how to use IDF framework build application of reusable component