예제 #1
0
def get_LDR():
    print "====================LDR============================="
    zaehler = 1
   
    while zaehler < 15:
        print read_mcp3008.readAnalogData(0, 11, 10, 9, 8)
        zaehler = zaehler +1
예제 #2
0
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
예제 #3
0
def get_O2():
    # use chip select CE0, channel 0
    
    O2 = read_mcp3008.readAnalogData(1, 11, 10, 9, 8)
    return O2
예제 #4
0
def get_LDR2():
    
    UV = read_mcp3008.readAnalogData(2, 11, 10, 9, 8)
    return UV
예제 #5
0
def get_LDR():
    
    LDR =  read_mcp3008.readAnalogData(0, 11, 10, 9, 8)
    return LDR
예제 #6
0
def get_LDR():
    value = 0
    value = read_mcp3008.readAnalogData(0, 11, 10, 9, 8)
    #print value
    return value
예제 #7
0
import read_mcp3008

print read_mcp3008.readAnalogData(2, 11, 10, 9, 8)