aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/klippy/pwm.cfg6
-rw-r--r--test/klippy/pwm.test8
2 files changed, 14 insertions, 0 deletions
diff --git a/test/klippy/pwm.cfg b/test/klippy/pwm.cfg
index 45555ca8..fbda9126 100644
--- a/test/klippy/pwm.cfg
+++ b/test/klippy/pwm.cfg
@@ -13,6 +13,12 @@ value: 0
shutdown_value: 0
cycle_time: 0.01
+[pwm_tool test_pwm_tool]
+pin: PH4
+value: 0
+shutdown_value: 0
+cycle_time: 0.01
+
[mcu]
serial: /dev/ttyACM0
diff --git a/test/klippy/pwm.test b/test/klippy/pwm.test
index d204cbc6..5e74a3e0 100644
--- a/test/klippy/pwm.test
+++ b/test/klippy/pwm.test
@@ -28,3 +28,11 @@ 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
+
+# PWM tool
+# Basic test
+SET_PIN PIN=test_pwm_tool VALUE=0
+SET_PIN PIN=test_pwm_tool VALUE=0.5
+SET_PIN PIN=test_pwm_tool VALUE=0.5
+SET_PIN PIN=test_pwm_tool VALUE=0.25
+SET_PIN PIN=test_pwm_tool VALUE=1