adafruit / Adafruit_CircuitPython_Register

Python data descriptor classes to represent hardware registers on I2C devices.
MIT License
51 stars 23 forks source link

On the Trinket M0, I2c doesn't work due to Mar 6 'reversed' addition #24

Closed jepye closed 5 years ago

jepye commented 5 years ago

Trying to run code on the Trinket M0 with only the adafruit_bus_device, adafruit_fancyled, adafruit_register, led_animation, adafruit_amg88.mpy, adafruit_dotstar.mpy, and neopixel.mpy libraries installed, I keep getting an error when it tries to use I2c:

Traceback (most recent call last): File "code.py", line 11, in File "adafruit_amg88xx.py", line 128, in init File "adafruit_register/i2c_bits.py", line 90, in set File "adafruit_register/i2c_bits.py", line 87, in set NameError: name 'reversed' is not defined

It appears the change on Mar 20 that added 'reversed' broke it. When I load the previous version, it works just fine.

ladyada commented 5 years ago

oi @dhalbert do we not have enough space for reversed? i can hand-implement but its a handy list mangler

dhalbert commented 5 years ago

I might be able to add it; we deleted some other stuff that could make room. I'll try a trial build with the largest translations.

dhalbert commented 5 years ago

It fits!