Init
initial mit FluidNC Version 3.7.18
This commit is contained in:
27
uploadScript/ResetGPIO.py
Normal file
27
uploadScript/ResetGPIO.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import RPi.GPIO as GPIO
|
||||
import time as time
|
||||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
|
||||
G0 = 24
|
||||
EN = 23
|
||||
|
||||
GPIO.setup(G0,GPIO.OUT)
|
||||
GPIO.setup(EN,GPIO.OUT)
|
||||
|
||||
GPIO.output(G0,1)
|
||||
GPIO.output(EN,1)
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
GPIO.output(EN,0)
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
GPIO.output(EN,1)
|
||||
|
||||
print("should restart")
|
||||
|
||||
|
||||
# Benutzte GPIOs freigeben
|
||||
GPIO.cleanup()
|
||||
Reference in New Issue
Block a user