1
0
Fork 0

wasp: vibrator: Better default for pulse

These defaults are good for giving quick UI feedback.
This commit is contained in:
Daniel Thompson 2020-04-05 09:36:05 +01:00
parent b5e69aead3
commit 6a6e393d1f

View file

@ -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)