예제 #1
0
import fox
import time

# Define myled as the led labeled "L1" on the 
# Daisy11 module wired on D2 connector

Out1 = fox.Daisy19('D2','second','O1')
Out2 = fox.Daisy19('D2','second','O2')
Out3 = fox.Daisy19('D2','second','O3')
Out4 = fox.Daisy19('D2','second','O4')
 
while True:
	Out1.on()
	Out2.on()
	Out3.on()
	Out4.on()
	time.sleep(0.2)
	Out1.off()
	Out2.off()
	Out3.off()
	Out4.off()
	time.sleep(0.2)
예제 #2
0
import fox
import time

# Define myled as the led labeled "L1" on the
# Daisy11 module wired on D2 connector

Out1 = fox.Daisy19('D2', 'first', 'O1')
Out2 = fox.Daisy19('D2', 'first', 'O2')
Out3 = fox.Daisy19('D2', 'first', 'O3')
Out4 = fox.Daisy19('D2', 'first', 'O4')
Out5 = fox.Daisy19('D2', 'second', 'O1')
Out6 = fox.Daisy19('D2', 'second', 'O2')
Out7 = fox.Daisy19('D2', 'second', 'O3')
Out8 = fox.Daisy19('D2', 'second', 'O4')

while True:
    Out1.on()
    Out2.on()
    Out3.on()
    Out4.on()
    time.sleep(0.2)
    Out1.off()
    Out2.off()
    Out3.off()
    Out4.off()
    time.sleep(0.2)
    Out5.on()
    Out6.on()
    Out7.on()
    Out8.on()
    time.sleep(0.2)
예제 #3
0
import fox
import time

# Define myled as the led labeled "L1" on the
# Daisy11 module wired on D2 connector

Out1 = fox.Daisy19('D2', 'first', 'O1')
Out2 = fox.Daisy19('D2', 'first', 'O2')
Out3 = fox.Daisy19('D2', 'first', 'O3')
Out4 = fox.Daisy19('D2', 'first', 'O4')

while True:
    Out1.on()
    Out2.on()
    Out3.on()
    Out4.on()
    time.sleep(0.2)
    Out1.off()
    Out2.off()
    Out3.off()
    Out4.off()
    time.sleep(0.2)
예제 #4
0
        Mon2.on()
        Mon1.off()
        Mon4.on()
        Mon3.off()
        blinkOn = True
    time.sleep(testDelay)

    if SelD18.pressed():
        testD18 = True
        selTest = False
        In1 = fox.Daisy18('D5', 'first', 'I1')
        In2 = fox.Daisy18('D5', 'first', 'I2')
        In3 = fox.Daisy18('D5', 'first', 'I3')
        In4 = fox.Daisy18('D5', 'first', 'I4')

        Out1 = fox.Daisy19('D5', 'second', 'O1')
        Out2 = fox.Daisy19('D5', 'second', 'O2')
        Out3 = fox.Daisy19('D5', 'second', 'O3')
        Out4 = fox.Daisy19('D5', 'second', 'O4')
        Act18.on()
        print "Start Test D18"

    if SelD19.pressed():
        testD19 = True
        selTest = False
        In1 = fox.Daisy18('D5', 'second', 'I1')
        In2 = fox.Daisy18('D5', 'second', 'I2')
        In3 = fox.Daisy18('D5', 'second', 'I3')
        In4 = fox.Daisy18('D5', 'second', 'I4')

        Out1 = fox.Daisy19('D5', 'first', 'O1')