Closed dhalbert closed 6 years ago
CircuitPython 2.x uses ustruct instead of struct. The common fix is:
ustruct
struct
try: import struct except ImportError: import ustruct as struct
E.g. in https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/blob/d5491cded0d12716ceb1111ca4c4431111a22df6/adafruit_lis3dh.py#L37
fixed! https://github.com/adafruit/Adafruit_CircuitPython_seesaw/commit/45fadc87b28879a3d721cddf9c92c28737e41e43
CircuitPython 2.x uses
ustruct
instead ofstruct
. The common fix is:E.g. in https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/blob/d5491cded0d12716ceb1111ca4c4431111a22df6/adafruit_lis3dh.py#L37