Skip to content

Commit c04204a

Browse files
silence buzzer on startup
1 parent 57f765b commit c04204a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

PicoAutonomousRobotics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def __init__(self):
285285
self.conversionFactor = 0.0343
286286
self.maxDistanceTimeout = int( 2 * 500 /self.conversionFactor) # 500cm is past the 400cm max range by a reasonable amount for a timeout
287287
self.buzzer = PWM(Pin(16))
288+
self.buzzer.duty_u16(0) #ensure silence by setting duty to 0
288289
#setup LineFollow Pins
289290
self.CentreLF = ADC(27)
290291
self.LeftLF = ADC(28)

0 commit comments

Comments
 (0)