import RPi.GPIO as GPIO import time GPIO.setwarnings(False) RESET_PIN = 23 class Reset: @staticmethod def reset_bot(): GPIO.setmode(GPIO.BCM) GPIO.setup(RESET_PIN, GPIO.OUT) GPIO.output(RESET_PIN, GPIO.LOW) time.sleep(0.1) GPIO.output(RESET_PIN, GPIO.HIGH) time.sleep(1.5)