diff options
Diffstat (limited to 'wasp/drivers/vibrator.py')
| -rw-r--r-- | wasp/drivers/vibrator.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wasp/drivers/vibrator.py b/wasp/drivers/vibrator.py index eba6018..359e738 100644 --- a/wasp/drivers/vibrator.py +++ b/wasp/drivers/vibrator.py @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: LGPL-3.0-or-later +# Copyright (C) 2020 Daniel Thompson + # Generic PWM capable vibrator import time @@ -11,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) |
