#!/usr/bin/python3 import sys GPIOPATH = "/sys/class/gpio/" fo = open(GPIOPATH + "gpio60/direction", "w") fo.write("out") fo.close() fo = open(GPIOPATH + "gpio60/value", "w") fo.write("1") fo.close()