Minor fixes

This commit is contained in:
Konstantin Lampalzer 2021-09-11 21:12:58 +02:00
parent 3fe3139961
commit aac99a11ba
4 changed files with 8 additions and 4 deletions

View file

@ -3,15 +3,17 @@ import time
GPIO.setwarnings(False)
RESET_PIN = 23
BOOT_PIN = 17
class Reset:
@staticmethod
def reset_bot():
GPIO.setmode(GPIO.BCM)
GPIO.setup(RESET_PIN, GPIO.OUT)
GPIO.setup(BOOT_PIN, GPIO.OUT)
GPIO.output(RESET_PIN, GPIO.LOW)
GPIO.output(BOOT_PIN, GPIO.LOW)
time.sleep(0.1)
GPIO.output(RESET_PIN, GPIO.HIGH)
time.sleep(1.5)