diff --git a/temperusb/device_library.py b/temperusb/device_library.py index ddeb5e3..f6969f8 100644 --- a/temperusb/device_library.py +++ b/temperusb/device_library.py @@ -59,6 +59,11 @@ def __init__( hum_sens_offsets=[4], type=TemperType.SI7021, ), + "TEMPerHumiV1.0": TemperConfig( + temp_sens_offsets=[2], + hum_sens_offsets=[4], + type=TemperType.FM75, + ), "TEMPerHumiV1.1": TemperConfig( temp_sens_offsets=[2], hum_sens_offsets=[4], diff --git a/tests/test_temper.py b/tests/test_temper.py index 58e5222..408269a 100644 --- a/tests/test_temper.py +++ b/tests/test_temper.py @@ -86,6 +86,16 @@ [12.3], [87.6], ], + [ + "TEMPerHumiV1.0", + 0x0C45, + 0x7401, + 1, + b"\x01\x80\x33\x01\x00\x00\x00\x00", + b"\x00\x00\x20\x1A\x0C\x0C", # 0x201A,0x0C0C converts to 32.1C,98.7% (fm75) + [32.1], + [98.7], + ], [ "TEMPerHumiV1.1", 0x0C45,