Jacob Rosenthal
67baec472d
nrf: dump the pwm_sequence example for clarity
...
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
2021-11-11 23:31:10 -07:00
Jacob Rosenthal
937f49dead
nrf: sequencepwm rename top to max_duty for consistancy
2021-11-11 22:47:57 -07:00
Jacob Rosenthal
ea1c62ff61
fix
2021-11-11 20:12:50 -07:00
Jacob Rosenthal
639034cee4
fix
2021-11-11 19:58:45 -07:00
Jacob Rosenthal
ec66fcd01a
pwm_sequence consume buffer
2021-11-11 19:14:29 -07:00
Jacob Rosenthal
2973ff4cf0
remove unstable feature and dependency, and make pwm_sequence a near mirror of pwm example
2021-11-10 18:49:24 -07:00
Jacob Rosenthal
b726ef1886
make SequenceConfig struct is consistent with other Config structs, that are always non_exhaustive and have a Default
2021-11-03 18:37:54 -07:00
Jacob Rosenthal
d961fd1015
rename to SimplePwm and SequencePwm
2021-11-03 18:25:44 -07:00
Jacob Rosenthal
c939edb8d0
rename error enum again
2021-11-02 10:57:01 -07:00
Jacob Rosenthal
4647792ad6
seperate start from pwmseq::new
2021-11-01 20:50:18 -07:00
Jacob Rosenthal
49253152cf
seperate sequence from duty cycle pwm struct
2021-11-01 20:50:14 -07:00
Jacob Rosenthal
12b2c5d5f7
better not as a constructor?
2021-11-01 08:54:07 -07:00
Jacob Rosenthal
90be851e4b
reduce complexity of loopmode
2021-11-01 08:45:07 -07:00
Jacob Rosenthal
14dc524b84
documentation
2021-11-01 01:20:01 -07:00
Jacob Rosenthal
763e250dfe
add ability to configure loop count from 1 to infinite
2021-10-30 16:16:10 -07:00
Jacob Rosenthal
1d1d8a848e
simplify api, more interesting example
2021-10-29 16:39:41 -07:00
Jacob Rosenthal
eb0bf1fd7a
simple_playback api from nrf sdk
2021-10-29 16:27:26 -07:00