Protobuf prototype
This commit is contained in:
parent
e277a83c5f
commit
9b567b8c6c
119 changed files with 8599 additions and 0 deletions
|
@ -1,24 +0,0 @@
|
|||
import RPi.GPIO as GPIO
|
||||
import time
|
||||
|
||||
GPIO.setwarnings(False)
|
||||
RESET_PIN = 23
|
||||
BOOT_PIN = 17
|
||||
|
||||
class Reset:
|
||||
"""Reset the co-processor
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def reset_bot():
|
||||
"""Reset the co-processor
|
||||
"""
|
||||
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)
|
Reference in a new issue