Skip to content

Add thermistor support #13

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

Merged
merged 3 commits into from
Jun 22, 2021
Merged

Add thermistor support #13

merged 3 commits into from
Jun 22, 2021

Conversation

dgriswo
Copy link

@dgriswo dgriswo commented Jun 22, 2021

Added support for thermistors and setting the cell temperature over i2c.

For the b-constant, the sensor expects an integer with the unit of 1k. (so 3950K is 3950)

For the cell_temperature, the registers hold the Kelvin temperature. I'm converting to and from Celsius. If this is not desired in the library, I can remove the conversion.

@ladyada
Copy link
Member

ladyada commented Jun 22, 2021

nice! thank you :) i didn't test it, but since there's an example i assume you did!

@ladyada ladyada merged commit 066b5fb into adafruit:main Jun 22, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jun 25, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_EPD to 2.9.4 from 2.9.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#53 from cdmuhlb/issues/52-ssd1680-stride
  > Moved default branch to main
  > Moved CI to Python 3.7
  > Added help text and problem matcher
  > Added pull request template

Updating https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3731 to 3.2.0 from 3.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_IS31FL3731#45 from lesamouraipourpre/matrix5x5
  > Moved default branch to main
  > Moved CI to Python 3.7
  > Added help text and problem matcher
  > Added pull request template

Updating https://github.com/adafruit/Adafruit_CircuitPython_LC709203F to 2.1.0 from 2.0.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_LC709203F#14 from jposada202020/correcting_docs
  > Merge pull request adafruit/Adafruit_CircuitPython_LC709203F#13 from dgriswo/main
  > Moved default branch to main
  > Moved CI to Python 3.7
  > Added help text and problem matcher
  > Added pull request template
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 2.18.5 from 2.18.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#152 from jposada202020/correcting_bitmaplabel_anchorpoint
  > Moved default branch to main
  > Moved CI to Python 3.7
  > Added help text and problem matcher
  > Added pull request template

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_NeoKey
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.

2 participants