Beispiel #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)
Beispiel #2
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)
Beispiel #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)