def get_LDR(): print "====================LDR=============================" zaehler = 1 while zaehler < 15: print read_mcp3008.readAnalogData(0, 11, 10, 9, 8) zaehler = zaehler +1
def get_O2(): # use chip select CE0, channel 0 print "=====================O2=============================" zaehler = 1 while zaehler < 15: print read_mcp3008.readAnalogData(1, 11, 10, 9, 8) zaehler = zaehler +1
def get_O2(): # use chip select CE0, channel 0 O2 = read_mcp3008.readAnalogData(1, 11, 10, 9, 8) return O2
def get_LDR2(): UV = read_mcp3008.readAnalogData(2, 11, 10, 9, 8) return UV
def get_LDR(): LDR = read_mcp3008.readAnalogData(0, 11, 10, 9, 8) return LDR
def get_LDR(): value = 0 value = read_mcp3008.readAnalogData(0, 11, 10, 9, 8) #print value return value
import read_mcp3008 print read_mcp3008.readAnalogData(2, 11, 10, 9, 8)