Hello All,
I have a code that isn't working (RP2040 Trinkey) so I tried using one of the examples to see if it resolved but it's still throwing the same error. ChatGPT and Google aren't providing any answers so hopefully I can find it here!
Using i2c = board.STEMMA_I2C()
REPL:
Lut: 27 deg C => 25.0% duty cycle
34 deg C => 50.0% duty cycle
42 deg C => 75.0% duty cycle
Traceback (most recent call last):
File "<stdin>", line 45, in <module>
File "adafruit_emc2101/emc2101_ext.py", line 230, in fan_speed
File "adafruit_emc2101/__init__.py", line 267, in fan_speed
File "adafruit_register/i2c_struct.py", line 80, in __get__
AttributeError: 'super' object has no attribute 'i2c_device'
Here's the example:
https://github.com/adafruit/Adafruit_Ci ... example.py
Updated to 8.0.4 and replaced my lib. Files: adafruit_bus_device , adafruit_emc2101, adafruit_register
EMC2101 'super' object has no attribute 'i2c_device' help
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- brodybolanos
- Posts: 2
- Joined: Fri Mar 10, 2023 9:09 pm
- neradoc
- Posts: 542
- Joined: Wed Apr 27, 2016 2:38 pm
Re: EMC2101 'super' object has no attribute 'i2c_device' help
Hi, after investigating it a bit, it looks like it's a bug in the library, that doesn't happen in C-python (on desktop or single-board computers like the Pi 4 using Blinka). Maybe the library wasn't tested on a Circuitpython device. I'll open an issue in the repository.
- brodybolanos
- Posts: 2
- Joined: Fri Mar 10, 2023 9:09 pm
Re: EMC2101 'super' object has no attribute 'i2c_device' help
Thank you! Just saw the issue opened on Github, much appreciated
Please be positive and constructive with your questions and comments.