diff --git a/gpio.py b/gpio.py new file mode 100755 index 0000000..9116c2f --- /dev/null +++ b/gpio.py @@ -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") +