mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 14:44:20 -06:00
pwm_cycle_time: New module for output pins with dynamic cycle times
Remove support for changing the cycle time of pwm pins from the output_pin module. Use a new pwm_cycle_time module that supports setting dynamic cycle times. This simplifies the output_pin code and low-level pin update code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
1baa45913f
commit
fd2feff67d
9 changed files with 204 additions and 38 deletions
|
@ -3153,6 +3153,24 @@ pin:
|
|||
# See the "output_pin" section for the definition of these parameters.
|
||||
```
|
||||
|
||||
### [pwm_cycle_time]
|
||||
|
||||
Run-time configurable output pins with dynamic pwm cycle timing (one
|
||||
may define any number of sections with an "pwm_cycle_time" prefix).
|
||||
Pins configured here will be setup as output pins and one may modify
|
||||
them at run-time using "SET_PIN PIN=my_pin VALUE=.1 CYCLE_TIME=0.100"
|
||||
type extended [g-code commands](G-Codes.md#pwm_cycle_time).
|
||||
|
||||
```
|
||||
[pwm_cycle_time my_pin]
|
||||
pin:
|
||||
#value:
|
||||
#shutdown_value:
|
||||
#cycle_time: 0.100
|
||||
#scale:
|
||||
# See the "output_pin" section for information on these parameters.
|
||||
```
|
||||
|
||||
### [static_digital_output]
|
||||
|
||||
Statically configured digital output pins (one may define any number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue