import RPi.GPIO as gpio
import time


gpio.setmode(gpio.BCM)
gpio.setup(18, gpio.OUT)
gpio.setup(23, gpio.OUT)

#pin for led control
#gpio.output(23, gpio.HIGH)

#pin for switch transistor
gpio.output(18, gpio.LOW)

print 'Power OFF'
text_file = open("/home/pi/rrwi/py/power_status.txt", "w")
text_file.write("0")
text_file.close()
