adafruit / Adafruit_CircuitPython_SHT4x

Python library for SHT4x temperature / humidity sensors
MIT License
11 stars 7 forks source link

small int overflow reading serial number on SHT41 Trinkey #13

Closed jedgarpark closed 5 months ago

jedgarpark commented 5 months ago

I'm trying the example code on an SHT41 Trinkey running CircuitPython 9.0.3 and the line 12 in code.py throws this error:

 File "code.py", line 12, in <module>
  File "adafruit_sht4x.py", line 159, in serial_number

OverflowError: small int overflow
caternuson commented 5 months ago

That'll be a limit of the CP build for that board.

The serial number isn't really needed for anything. Can try commenting out that line.

jedgarpark commented 5 months ago

Thanks, @caternuson yes, i don't really need that line in the demo and commented it out.