Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions pylabrobot/plate_reading/clario_star_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
import time
from typing import List, Optional, Union

from pylibftdi import driver
try:
from pylibftdi import driver

HAS_PYLIBFTDI = True
except ImportError as e:
HAS_PYLIBFTDI = False
_FTDI_IMPORT_ERROR = e

from pylabrobot import utils
from pylabrobot.io.ftdi import FTDI
Expand All @@ -24,8 +30,9 @@
# Make pylibftdi scan the CLARIOstar VID:PID
# appears as ID 0403:bb68 Future Technology Devices International Limited CLARIOstar

driver.USB_VID_LIST.append(0x0403) # i.e. 1027
driver.USB_PID_LIST.append(0xBB68) # i.e. 47976
if HAS_PYLIBFTDI:
driver.USB_VID_LIST.append(0x0403) # i.e. 1027
driver.USB_PID_LIST.append(0xBB68) # i.e. 47976


class CLARIOStarBackend(PlateReaderBackend):
Expand Down