From 12e2b1c8d9dd4b79aba9573b565268fb1c4bd2c3 Mon Sep 17 00:00:00 2001 From: zen Date: Fri, 14 May 2021 14:22:18 +0000 Subject: [PATCH] Update bsp.py --- bsp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bsp.py b/bsp.py index be11945..07ad2c5 100644 --- a/bsp.py +++ b/bsp.py @@ -94,6 +94,7 @@ class motor (): class beep(): def __init__(self): self.BUZ = 4 + GPIO.setmode(GPIO.BCM) GPIO.setup(self.BUZ, GPIO.OUT) def on(self): @@ -419,4 +420,4 @@ if __name__ == '__main__': l = line_sensor() while True: print(l.AnalogRead()) - time.sleep(0.2) \ No newline at end of file + time.sleep(0.2)