示例#1
0
from ablib import Daisy8
from time import sleep

RL0_A = Daisy8('D11', 'first', 'RL0')
RL1_A = Daisy8('D11', 'first', 'RL1')
RL0_B = Daisy8('D11', 'second', 'RL0')
RL1_B = Daisy8('D11', 'second', 'RL1')

while True:
    RL0_A.on()
    sleep(0.5)

    RL1_A.on()
    sleep(0.5)

    RL0_B.on()
    sleep(0.5)

    RL1_B.on()
    sleep(0.5)

    RL0_A.off()
    sleep(0.5)

    RL1_A.off()
    sleep(0.5)

    RL0_B.off()
    sleep(0.5)

    RL1_B.off()
示例#2
0
from ablib import Daisy8
from time import sleep

IN0 = Daisy8('D11', 'first', 'IN0')
IN1 = Daisy8('D11', 'first', 'IN1')

while True:
    print "IN0=", IN0.get()
    sleep(1)
    print "IN1=", IN1.get()
    sleep(1)
示例#3
0
from ablib import Daisy8
from time import sleep

IN0 = Daisy8('D11', 'IN0')
IN1 = Daisy8('D11', 'IN1')

while True:
    print "IN0=", IN0.get()
    sleep(1)
    print "IN1=", IN1.get()
    sleep(1)
示例#4
0
from ablib import Daisy8
from time import sleep

IN0_A = Daisy8('D11', 'IN0', 'first')
IN1_A = Daisy8('D11', 'IN1', 'first')
IN0_B = Daisy8('D11', 'IN0', 'second')
IN1_B = Daisy8('D11', 'IN1', 'second')

while True:
    print " IN0 first=", IN0_A.get()
    print " IN1 first=", IN1_A.get()
    print "IN0 second=", IN0_B.get()
    print "IN1 second=", IN1_B.get()
    sleep(1)
示例#5
0
from ablib import Daisy8
from time import sleep

RL0 = Daisy8('D11','first','RL0')
RL1 = Daisy8('D11','first','RL1')
 
while True:
	RL0.on()
	sleep(1)

	RL1.on()
	sleep(1)

	RL0.off()
	sleep(1)

	RL1.off()
	sleep(1)


示例#6
0
from ablib import Daisy8
from time import sleep

RL0 = Daisy8('D11', 'RL0')
RL1 = Daisy8('D11', 'RL1')

while True:
    RL0.on()
    sleep(1)

    RL1.on()
    sleep(1)

    RL0.off()
    sleep(1)

    RL1.off()
    sleep(1)