Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding get_functions #28

Closed
wants to merge 1 commit into from
Closed

adding get_functions #28

wants to merge 1 commit into from

Conversation

jposada202020
Copy link
Contributor

@jposada202020 jposada202020 commented Mar 18, 2023

closes #27

For the reviewer:
There are two changes here

  1. I have changed the name for each class initialization, due to CircuitPython MRO behaviour, when using the EMC2101_LUT class, and going up to EMC2101 main __init__ the call self.initializate()there was calling the EMC2101_LUT initialization and not the EMC2101 one. I guess that is why they were using the super().initialization line.. But who knows. This solves the issue when the line below was change to True

  1. I Have changed the property in the parent class to get_xxxxx, to avoid property calling conflicts.

I have test with the three examples, be aware that, that I could not test the outside_temperature as I do not how to wire it... I did test with a fan. I use a mock up temperature for the tests. No other changes were made, this PR is solely to solve the issue and no to look further in Library problems

@brody please could you test, thanks :) Hope you have at least a start on how to change the library. Good Luck

@jposada202020 jposada202020 deleted the adding_get_functions branch May 10, 2023 15:18
@EuropaSteve
Copy link

Hello,
I'm using a Qt Py RP2040, 128x64 OLED, and EMC 2101 Fan Controller with remote sensor.
When I try to use the look up table I get 'super' object has no attribute 'i2c_device'. After googling around I found
https://github.com/adafruit/Adafruit_CircuitPython_EMC2101/pull/28/files
If I make the changes to library as listed everything works.
The pull request was closed as complete but none of the changes are in the latest revisions of the EMC2101 library. Does this need to be re-opened?

@dhalbert
Copy link
Contributor

dhalbert commented Jun 2, 2024

@EuropaSteve This PR was never merged, as I think you see. @jposada202020 Do you remember why you closed this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overriding property getter and setters is not supported in Circuitpython
3 participants