You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to leverage a PWM from a Blue Pill to play some notes on a buzzer. I have done this before in C+libopencm3 by adjusting the prescaler and the autoreload registers directly to reach a frequency near the musical note (if you are curious, here is an example: https://github.com/themightyteam/bluepill-examples/tree/master/examples/buzzer_music ).
This is probably closely related to #225 which has been open for a while.
Using the PAC directly would work for sure but is a bit annoying.
I'm not really involved in this repo much anymore so I can't directly comment on if we would want this in the HAL, but presumably we'd want it on the embedded-hal layer, not here for it to be done "properly".
I'm trying to leverage a PWM from a Blue Pill to play some notes on a buzzer. I have done this before in C+libopencm3 by adjusting the prescaler and the autoreload registers directly to reach a frequency near the musical note (if you are curious, here is an example: https://github.com/themightyteam/bluepill-examples/tree/master/examples/buzzer_music ).
Now I would like to do the same using this HAL, but so far I can only play full Hertz and I don't see a way to update directly the registers (example here: https://github.com/aindustriosa/RustyBugA/blob/7-add-buzzer-to-the-bsc/mightybuga_bsc/examples/no_bsc_buzzer.rs ).
So my questions are:
Thanks in advance.
The text was updated successfully, but these errors were encountered: