esp-rs / esp-hal-community

Apache License 2.0
13 stars 7 forks source link

Add esp-hal-buzzer to drive a piezo-electric buzzer. #3

Closed AnthonyGrondin closed 1 month ago

AnthonyGrondin commented 1 month ago

Moved over the esp-hal-buzzer package from https://github.com/esp-rs/esp-hal/pull/1984

The provided example currently builds using a patch for esp-hal.

I'll put this in draft until https://github.com/esp-rs/esp-hal/pull/1984 is merged so that we can update the patch to use the upstream repository

jessebraham commented 1 month ago

Thanks for moving this PR over! https://github.com/esp-rs/esp-hal/pull/1984 has now been merged :)

AnthonyGrondin commented 1 month ago

I've updated the patch to use the upstream repo and added CI tests.

I also added alias in .cargo/config.toml so the example can be flashed with: cd esp-hal-buzzer/ && cargo +esp esp32s3 --example buzzer

AnthonyGrondin commented 1 month ago

Thank you. I'm glad to see the buzzer saga resolved :smile: