##Interface layer software:: ---------------------------------------------

def getThermocouple(dataA):
        global Fanstate
        global O2state
        global fuelCount
        global dataB
        #gets thermocouple data and updates display
        data = analogRead()
        TCbox.setText(str(data))
        dataA.append(data)
        dataB.append([Tnaught-time.time(),Fanstate,O2state,fuelCount,data])
        fuelCount = 0
        return data #returns thermocouple data

def fanOn():                #Fan control on 12
    digitalWrite(12,1)      #^
                            # ^
def fanOff():               #  ^
    digitalWrite(12,0)      #   ^

def O2on():                 #O2 control on 13
    digitalWrite(13,1)      #^
                            # ^
def O2off():                #  ^
    digitalWrite(13,0)      #   ^

def fuelAdd():
    #initiates a single fuel adddition
    duration = float(Fuelbox.getText())
    digitalWrite(11,1)
    time.sleep(duration)
    digitalWrite(11,0)

##End interface layer software:: ---------------------------------------------