wasp: vibrator: Better default for pulse
These defaults are good for giving quick UI feedback.
This commit is contained in:
parent
b5e69aead3
commit
6a6e393d1f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue