From 6a6e393d1fc389102733fe182ea41b803bd05755 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 5 Apr 2020 09:36:05 +0100 Subject: [PATCH] wasp: vibrator: Better default for pulse These defaults are good for giving quick UI feedback. --- wasp/drivers/vibrator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasp/drivers/vibrator.py b/wasp/drivers/vibrator.py index 3aee674..359e738 100644 --- a/wasp/drivers/vibrator.py +++ b/wasp/drivers/vibrator.py @@ -14,7 +14,7 @@ class Vibrator(object): self.period = 16000 self.active_low = active_low - def pulse(self, duty=50, ms=100): + def pulse(self, duty=25, ms=40): pwm = PWM(0, self.pin, freq=self.freq, duty=duty, period=self.period) pwm.init() time.sleep_ms(ms)