nrf-rs / microbit

A Rust crate for BBC micro:bit development
BSD Zero Clause License
276 stars 61 forks source link

Is there an example on PWM? #25

Closed odlg closed 3 years ago

odlg commented 4 years ago

An example on how to use PWM would be good. I can see at https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Flib_pwm.html that it needs a timer, ppi and gpiote, but I can not figure out how to do it.

robyoung commented 3 years ago

The speaker example from @blueluna in #59 uses PWM.