Esempio n. 1
0
from IoTPy.ioboard.interfaces.i2c import I2C
from IoTPy.ioboard.ioboard import IoBoard
from IoTPy.ioboard.errors import IoTPy_IOError, IoTPy_APIError, die

try:
    u = IoBoard()
except IoTPy_APIError, e:  # seems can't establish connection with the UPER board
    details = e.args[0]
    die(details)

interface = I2C(u)
for address in xrange(0, 128):
    print(address)
    try:
        interface.transaction(address, '', 0)
        print("geras:", address)
    except IoTPy_IOError, IoTPy_APIError:
        pass
Esempio n. 2
0
 def __init__(self, serial_port=None):
     IoBoard.__init__(self, _8dev2300_PINOUT, serial_port)
Esempio n. 3
0
 def __init__(self, serial_port=None):
     IoBoard.__init__(self, UPER1_PINOUT, serial_port)
Esempio n. 4
0
 def __init__(self, serial_port=None):
     IoBoard.__init__(self, WEIO_PINOUT, serial_port)
Esempio n. 5
0
 def __init__(self, serial_port=None):
     IoBoard.__init__(self, LPCExpresso11U14REVA_PINOUT, serial_port)