adafruit / Adafruit_CircuitPython_DS3231

Adafruit CircuitPython drivers for the DS3231 realtime clock.
MIT License
21 stars 19 forks source link

small int overflow on non-longint board #30

Closed dhalbert closed 3 years ago

dhalbert commented 4 years ago

Discord user thesmelliestone could not use this library on a Trinket M0. It appears that a register read is assuming longint support:

import adafruit_ds3231
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_ds3231.py", line 67, in <module>
  File "adafruit_ds3231.py", line 97, in DS3231
  File "adafruit_register/i2c_bits.py", line 63, in init
OverflowError: small int overflow
m313 commented 3 years ago

I could replicate the error on a Gemma M0 board.

Julien-768 commented 3 years ago

I have the same issue on feather M0 adalogger.