Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes authored Aug 29, 2022
1 parent 6f90cd4 commit 5b2f136
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/psu_off.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BCM)
GPIO.setup(14, GPIO.OUT)
GPIO.setup(15, GPIO.OUT)

GPIO.output(14, GPIO.HIGH)
GPIO.output(15, GPIO.HIGH)

GPIO.cleanup()
9 changes: 9 additions & 0 deletions tools/psu_on.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BCM)
GPIO.setup(14, GPIO.OUT)
GPIO.setup(15, GPIO.OUT)

GPIO.output(14, GPIO.LOW)
GPIO.output(15, GPIO.LOW)

0 comments on commit 5b2f136

Please sign in to comment.