diff options
author | Guy Shapira <gayuha@gmail.com> | 2020-09-07 13:31:35 +0300 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-09-26 20:51:38 -0400 |
commit | 27cefb2b388b668a3747451ab28b9b2a544bb242 (patch) | |
tree | df5c639f03452477381d9d7d564a97b73a968c76 /docs | |
parent | a79c57ab298eca18ef9b0d363e782c708968ffcb (diff) | |
download | kutter-27cefb2b388b668a3747451ab28b9b2a544bb242.tar.gz kutter-27cefb2b388b668a3747451ab28b9b2a544bb242.tar.xz kutter-27cefb2b388b668a3747451ab28b9b2a544bb242.zip |
gpiocmds: Add soft-pwm frequency modulation support
Signed-off-by: Guy Shapira <gayuha@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/MCU_Commands.md | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/docs/MCU_Commands.md b/docs/MCU_Commands.md index 921f402a..79425a2e 100644 --- a/docs/MCU_Commands.md +++ b/docs/MCU_Commands.md @@ -133,15 +133,13 @@ This section lists some commonly used config commands. see the description of the 'set_pwm_out' and 'config_digital_out' commands for parameter description. -* `config_soft_pwm_out oid=%c pin=%u cycle_ticks=%u value=%c +* `config_soft_pwm_out oid=%c pin=%u value=%c default_value=%c max_duration=%u` : This command creates an internal micro-controller object for software implemented PWM. Unlike hardware pwm pins, a software pwm object does not require any special hardware support (other than the ability to configure the - pin as a digital output GPIO). Because the output switching is - implemented in the micro-controller software, it is recommended that - the cycle_ticks parameter correspond to a time of 10ms or greater. - See the description of the 'set_pwm_out' and 'config_digital_out' + pin as a digital output GPIO). See the description of + the 'set_pwm_out' and 'config_digital_out' commands for parameter description. * `config_analog_in oid=%c pin=%u` : This command is used to configure @@ -203,9 +201,13 @@ only of interest to developers looking to gain insight into Klipper. a hardware PWM output pin. See the 'schedule_digital_out' and 'config_pwm_out' commands for more info. -* `schedule_soft_pwm_out oid=%c clock=%u on_ticks=%u` : Schedules a - change to a software PWM output pin. See the 'schedule_digital_out' - and 'config_soft_pwm_out' commands for more info. +* `schedule_soft_pwm_out oid=%c clock=%u on_ticks=%u off_ticks=%u` : Schedules a + change to a software PWM output pin. The parameters 'on_ticks' and 'off_ticks' + define for how many ticks the pin will be on and off, respectively. + Because the output switching is implemented in the micro-controller software, + it is recommended that the sum of on_ticks and off_ticks parameters + corresponds to a time of 10ms or greater. See the 'schedule_digital_out' and + 'config_soft_pwm_out' commands for more info. * `query_analog_in oid=%c clock=%u sample_ticks=%u sample_count=%c rest_ticks=%u min_value=%hu max_value=%hu` : This command sets up a |