aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf/src/bin/pwm_sequence.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename examples/nrf to examples/nrf52840Dominik Boehi2023-01-091-36/+0
|
* Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-181-2/+2
|
* 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-3/+3
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-6/+2
|
* Use embassy/defmt-timestamp-uptime in all examples.Dario Nieuwenhuis2022-04-021-2/+3
|
* nrf: remove OptionalPinDario Nieuwenhuis2022-02-121-4/+1
|
* Further API simplification for the single seq scenariohuntc2022-02-051-3/+2
|
* Removed unrequired clonehuntc2022-02-041-1/+1
|
* Introduced the SingleSequencer and a more complex Sequencerhuntc2022-02-041-17/+5
|
* Update another examplehuntc2022-02-041-13/+14
|
* Some more docohuntc2022-01-301-2/+2
|
* Revert "Own the sequence buffer"huntc2022-01-301-8/+14
| | | | This reverts commit 482389a6911d8d3505872e6ad03d5b0af565eaf9.
* Own the sequence bufferhuntc2022-01-291-14/+8
| | | | 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-4/+4
|
* Make the sequence a little nicer to pass aroundhuntc2022-01-281-11/+7
|
* PWM WS2812B example and per sequence confighuntc2022-01-281-5/+18
| | | | 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-9/+9
| | | | 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.
* pwm_sequence show implicit and explicit stop functionalityJacob Rosenthal2021-11-111-3/+6
|
* nrf: dump the pwm_sequence example for clarityJacob Rosenthal2021-11-111-82/+9
| | | | It is basically impossible to directly convert that example to a sequence for various reasons. You cant have multiple channels on same buffer with one sequence instance for starters, also at that clock rate and max_duty 1 period is far longer than the 3ms it was using, which would require using a new max_duty and thus require regenerating the sine table which makes it not representitive of the original example anymore
* nrf: sequencepwm rename top to max_duty for consistancyJacob Rosenthal2021-11-111-1/+1
|
* fixJacob Rosenthal2021-11-111-2/+2
|
* fixJacob Rosenthal2021-11-111-2/+8
|
* pwm_sequence consume bufferJacob Rosenthal2021-11-111-7/+1
|
* remove unstable feature and dependency, and make pwm_sequence a near mirror ↵Jacob Rosenthal2021-11-101-11/+87
| | | | of pwm example
* make SequenceConfig struct is consistent with other Config structs, that are ↵Jacob Rosenthal2021-11-031-13/+12
| | | | always non_exhaustive and have a Default
* rename to SimplePwm and SequencePwmJacob Rosenthal2021-11-031-2/+2
|
* rename error enum againJacob Rosenthal2021-11-021-1/+1
|
* seperate start from pwmseq::newJacob Rosenthal2021-11-011-2/+2
|
* seperate sequence from duty cycle pwm structJacob Rosenthal2021-11-011-3/+6
|
* better not as a constructor?Jacob Rosenthal2021-11-011-6/+5
|
* reduce complexity of loopmodeJacob Rosenthal2021-11-011-1/+1
|
* documentationJacob Rosenthal2021-11-011-1/+1
|
* add ability to configure loop count from 1 to infiniteJacob Rosenthal2021-10-301-8/+5
|
* simplify api, more interesting exampleJacob Rosenthal2021-10-291-7/+7
|
* simple_playback api from nrf sdkJacob Rosenthal2021-10-291-0/+41