Esempio n. 1
0
import ablib
import time

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

Out1 = ablib.Daisy19('D5', 'second', 'O1')
Out2 = ablib.Daisy19('D5', 'second', 'O2')
Out3 = ablib.Daisy19('D5', 'second', 'O3')
Out4 = ablib.Daisy19('D5', '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)
Esempio n. 2
0
import ablib
import time

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

Out1 = ablib.Daisy19('D5', 'first', 'O1')
Out2 = ablib.Daisy19('D5', 'first', 'O2')
Out3 = ablib.Daisy19('D5', 'first', 'O3')
Out4 = ablib.Daisy19('D5', '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)
Esempio n. 3
0
#!/usr/bin/python
#Factory test for Daisy-19 boards
import ablib
import time
import os

#0x27 for PCF8474 T
#0x3F for PCF8474 AT
LCD_ADDRESS = 0x27

delay = 0.4

ch1 = ablib.Daisy19("D2", "first", "CH1")
ch2 = ablib.Daisy19("D2", "first", "CH2")
ch3 = ablib.Daisy19("D2", "first", "CH3")
ch4 = ablib.Daisy19("D2", "first", "CH4")

Inp1 = ablib.Daisy18("D5", "first", "CH1")
Inp2 = ablib.Daisy18("D5", "first", "CH2")
Inp3 = ablib.Daisy18("D5", "first", "CH3")
Inp4 = ablib.Daisy18("D5", "first", "CH4")

L5 = ablib.Daisy11("D2", "L5")
L6 = ablib.Daisy11("D2", "L6")
L7 = ablib.Daisy11("D2", "L7")
L8 = ablib.Daisy11("D2", "L8")

lcd = ablib.Daisy24(0, LCD_ADDRESS)
lcd.backlighton()
lcd.setcurpos(6, 0)
lcd.putstring("TEST")
Esempio n. 4
0
import ablib
import time

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

Out1 = ablib.Daisy19('D2', 'first', 'O1')
Out2 = ablib.Daisy19('D2', 'first', 'O2')
Out3 = ablib.Daisy19('D2', 'first', 'O3')
Out4 = ablib.Daisy19('D2', 'first', 'O4')
Out5 = ablib.Daisy19('D2', 'second', 'O1')
Out6 = ablib.Daisy19('D2', 'second', 'O2')
Out7 = ablib.Daisy19('D2', 'second', 'O3')
Out8 = ablib.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)