aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf/src/bin/pwm_sequence_ppi.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename examples/nrf to examples/nrf52840Dominik Boehi2023-01-091-67/+0
|
* Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-181-1/+1
|
* Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis2022-08-171-2/+2
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-2/+2
|
* Update rust nightly. (#819)Dario Nieuwenhuis2022-06-181-1/+0
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-6/+3
|
* Use embassy/defmt-timestamp-uptime in all examples.Dario Nieuwenhuis2022-04-021-2/+3
|
* nrf: remove OptionalPinDario Nieuwenhuis2022-02-121-4/+2
|
* Further API simplification for the single seq scenariohuntc2022-02-051-3/+2
|
* Introduced the SingleSequencer and a more complex Sequencerhuntc2022-02-041-7/+7
|
* Expose PWMhuntc2022-02-041-9/+10
|
* Revert "Own the sequence buffer"huntc2022-01-301-7/+6
| | | | This reverts commit 482389a6911d8d3505872e6ad03d5b0af565eaf9.
* Own the sequence bufferhuntc2022-01-291-6/+7
| | | | This approach owns the sequence buffers which, while introducing an extra move, it eliminates the need to guard the lifetime of the sequence buffer. Given ownership, the buffer will be retained until the PWM sequence task is stopped.
* Now permits sequences to be mutated subsequentlyhuntc2022-01-281-2/+2
|
* Make the sequence a little nicer to pass aroundhuntc2022-01-281-3/+7
|
* PWM WS2812B example and per sequence confighuntc2022-01-281-4/+5
| | | | Demonstrates how to set the colour of a WS2812B to blue using PWM, and the use of multiple sequences along with their own config. This required an API change.
* Stop PWM before assigning the new sequencehuntc2022-01-251-1/+1
| | | | | | I had introduced a small bug in my last PR where I assigned the sequence before stopping the PWM. I now stop the PWM before doing that now. Also, corrected a math comment.
* Strengthen the borrowhuntc2022-01-241-1/+1
| | | | The start method is now safe. Because it has the potential of borrowing the sequence and mutating itself, the sequence must outlive the Pwm struct.
* Permit many sequences to be passedhuntc2022-01-231-8/+2
| | | | Sequences are now passed in via the start method to avoid having to stop the PWM and restart it. Sequences continue to be constrained with the same lifetime of the Pwm object itself. The pwm_sequence example has been extended to illustrate multiple sequences being passed around.
* nrf: sequencepwm add eventsJacob Rosenthal2021-11-131-0/+73