This repository has been archived on 2025-06-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
compLIB/compLib/Reset.py
2021-09-04 15:35:38 +02:00

16 lines
309 B
Python

import RPi.GPIO as GPIO
import time
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(0.5)