示例#1
0
def open_all_devices():
    analogdevice.open_device()
    dcm.open_device()
    iicdevice.open_device()
    lcd.open_device()
    motordevice.open_device()
    sound.open_device()
    uartdevice.open_device()
    ui.open_device()
    
    for port in range(0,4):
        analogdevice.clear_change(port)
        uartdevice.reset(port)
        iicdevice.reset(port)
示例#2
0
文件: __init__.py 项目: fikander/ev3
def open_all_devices():
    """Open all devices for operation.

    Should be called before any interaction with EV3 brick or sensors.

    """
    analogdevice.open_device()
    dcm.open_device()
    iicdevice.open_device()
    lcd.open_device()
    motordevice.open_device()
    sound.open_device()
    uartdevice.open_device()
    ui.open_device()

    for port in range(0, 4):
        analogdevice.clear_change(port)
        uartdevice.reset(port)
        iicdevice.reset(port)
示例#3
0
def open_all_devices():
    """Open all devices for operation.

    Should be called before any interaction with EV3 brick or sensors.

    """
    analogdevice.open_device()
    dcm.open_device()
    iicdevice.open_device()
    lcd.open_device()
    motordevice.open_device()
    sound.open_device()
    uartdevice.open_device()
    ui.open_device()

    for port in range(0, 4):
        analogdevice.clear_change(port)
        uartdevice.reset(port)
        iicdevice.reset(port)