A collection of OOB serial drivers for interacting with predominantly environmental sensors
pip install <git_url>
pip install pyserialdrivers
This library provides a minimal middle layer for realtime interfacing with YSI EXO sensors.
from pyserialdrivers import exo
from pyserialdrivers.exo.constants import ParamCodes
exo = exo.serial.DCPSerial("COM10")
values = exo.values
print(values)
# [Temperature: 2.5 °C, Battery: 3.7 V, Turbidity: 5.0 NTU]
temp = exo.get(ParamCodes.TEMP_C)
temp.value # 2.5
temp.param.unit # °C
temp.param.description # Temperature