예제 #1
0
def commanderProDevice():
    device = MockHidapiDevice(vendor_id=0x1b1c,
                              product_id=0x0c10,
                              address='addr')
    pro = CommanderPro(device, 'Corsair Commander Pro (experimental)', 6, 4, 2)
    pro.connect()
    pro._data = MockRuntimeStorage(key_prefixes='testing')
    return pro
예제 #2
0
def lightingNodeProDevice():
    device = MockHidapiDevice(vendor_id=0x1b1c,
                              product_id=0x0c0b,
                              address='addr')
    node = CommanderPro(device, 'Corsair Lighting Node Pro (experimental)', 0,
                        0, 2)
    node.connect()
    node._data = MockRuntimeStorage(key_prefixes='testing')
    return node