aboutsummaryrefslogtreecommitdiffstats
path: root/test/klippy/pwm.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/klippy/pwm.test')
-rw-r--r--test/klippy/pwm.test24
1 files changed, 15 insertions, 9 deletions
diff --git a/test/klippy/pwm.test b/test/klippy/pwm.test
index 5e74a3e0..fdbf42f2 100644
--- a/test/klippy/pwm.test
+++ b/test/klippy/pwm.test
@@ -16,18 +16,24 @@ SET_PIN PIN=soft_pwm_pin VALUE=0
SET_PIN PIN=soft_pwm_pin VALUE=0.5
SET_PIN PIN=soft_pwm_pin VALUE=1
+# Soft PWM with dynamic cycle time
+# Test basic on off
+SET_PIN PIN=cycle_pwm_pin VALUE=0
+SET_PIN PIN=cycle_pwm_pin VALUE=0.5
+SET_PIN PIN=cycle_pwm_pin VALUE=1
+
# Test cycle time
-SET_PIN PIN=soft_pwm_pin VALUE=0 CYCLE_TIME=0.1
-SET_PIN PIN=soft_pwm_pin VALUE=1 CYCLE_TIME=0.5
-SET_PIN PIN=soft_pwm_pin VALUE=0.5 CYCLE_TIME=0.001
-SET_PIN PIN=soft_pwm_pin VALUE=0.75 CYCLE_TIME=0.01
-SET_PIN PIN=soft_pwm_pin VALUE=0.5 CYCLE_TIME=1
+SET_PIN PIN=cycle_pwm_pin VALUE=0 CYCLE_TIME=0.1
+SET_PIN PIN=cycle_pwm_pin VALUE=1 CYCLE_TIME=0.5
+SET_PIN PIN=cycle_pwm_pin VALUE=0.5 CYCLE_TIME=0.001
+SET_PIN PIN=cycle_pwm_pin VALUE=0.75 CYCLE_TIME=0.01
+SET_PIN PIN=cycle_pwm_pin VALUE=0.5 CYCLE_TIME=1
# Test duplicate values
-SET_PIN PIN=soft_pwm_pin VALUE=0.5 CYCLE_TIME=0.5
-SET_PIN PIN=soft_pwm_pin VALUE=0.5 CYCLE_TIME=0.5
-SET_PIN PIN=soft_pwm_pin VALUE=0.75 CYCLE_TIME=0.5
-SET_PIN PIN=soft_pwm_pin VALUE=0.75 CYCLE_TIME=0.75
+SET_PIN PIN=cycle_pwm_pin VALUE=0.5 CYCLE_TIME=0.5
+SET_PIN PIN=cycle_pwm_pin VALUE=0.5 CYCLE_TIME=0.5
+SET_PIN PIN=cycle_pwm_pin VALUE=0.75 CYCLE_TIME=0.5
+SET_PIN PIN=cycle_pwm_pin VALUE=0.75 CYCLE_TIME=0.75
# PWM tool
# Basic test