#!/usr/bin/python import sysGPIO="/sys/class/gpio/gpio11" fo = open(GPIO + "/direction", "w")fo.write("out")fo = open(GPIO + "/value", "w")fo.write("0")fo = open(GPIO + "/value", "r")read = fo.read()print(read)