file name changed
parent
f54eaedee3
commit
f668b99179
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
GPIO60 = "/sys/class/gpio/gpio60/"
|
||||
|
||||
def writeVal(path, direction, value):
|
||||
fop = open(path + "direction", "w")
|
||||
fop.write(direction)
|
||||
fop.close()
|
||||
fov = open(path + "value", "w")
|
||||
fov.write(value)
|
||||
fov.close()
|
||||
return
|
||||
|
||||
writeVal(GPIO60, "out", "1")
|
||||
|
Loading…
Reference in New Issue