You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

11 lines
242 B

import sys
GPIO="/sys/class/gpio/gpio11"
def write():
fo = open(GPIO + "/direction", "w")
fo.write("out")
fo = open(GPIO + "/value", "w")
fo.write("1")
fo = open(GPIO + "/value", "r")
read = fo.read()
print(read)