File Organisation
This commit is contained in:
13
testprograms/beamtest
Executable file
13
testprograms/beamtest
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import RPi.GPIO as GPIO
|
||||
import time
|
||||
import sys
|
||||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setup(23, GPIO.IN, GPIO.PUD_UP)
|
||||
|
||||
while True:
|
||||
print(GPIO.input(23), end="")
|
||||
sys.stdout.flush()
|
||||
time.sleep(.1)
|
||||
Reference in New Issue
Block a user