Пример #1
0
def turnHeatingOff():
# ===================
	_GLOBALS.heatingIsOn=False
	GPIO.output(_GLOBALS.heatingRelay,GPIO.HIGH)
	GPIO.output(_GLOBALS.ledRed,0)
	logMessage("HEAT","OFF")
	_LCD.init()
	return;
Пример #2
0
def turnHeatingOn():
# ==================
	_GLOBALS.heatingIsOn=True
	GPIO.output(_GLOBALS.heatingRelay,GPIO.LOW)
	GPIO.output(_GLOBALS.ledRed,1)
	logMessage("HEAT","ON")
	_LCD.init()
	return;
Пример #3
0
import _FUNCTIONS, _GLOBALS, _LCD, _COMMS
import RPi.GPIO as GPIO
import time, os, sys

_GLOBALS.init()
_LCD.init()

_FUNCTIONS.initialiseGPIO()
_FUNCTIONS.turnHeatingOff()

count=0

while True:
    _FUNCTIONS.cycle("SLOW")

    try:
        time.sleep(9)
    except (KeyboardInterrupt):
        print
        _LCD.lcdDisplay('SHUTTING DOWN !','')
	_FUNCTIONS.logMessage('LOG','Exiting...')
	GPIO.cleanup()
        sys.exit(0)