Skip to content

Add relative_humidity property #40

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 1 commit into from
Sep 14, 2020
Merged

Add relative_humidity property #40

merged 1 commit into from
Sep 14, 2020

Conversation

anecdata
Copy link
Member

Almost all Adafruit libraries with a humidity sensor use relative_humidity as the name of the property for sensor humidity:
SHT31D, Si7021, HTU21D, AM2320, HTS221, AHTx0

This PR adds a relative_humidity property to BME280 (which simply accesses the humidity property) to normalize the API and allow users to remove conditional processing in environments where different humidity sensors may be used.

This has been tested on a BME280 connected to a Feather M4 running CP 5.3.1 and the library's simpletest.py code.

@ladyada ladyada merged commit 8127d8f into adafruit:master Sep 14, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 18, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_BME280 to 2.5.0 from 2.4.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_BME280#40 from anecdata/relative

Updating https://github.com/adafruit/Adafruit_CircuitPython_TLV493D to 1.1.4 from 1.1.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_TLV493D#6 from danaliv/address_kwarg

Updating https://github.com/adafruit/Adafruit_CircuitPython_Requests to 1.7.0 from 1.6.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Requests#31 from tannewt/http11

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_AirLift
@anecdata anecdata deleted the relative branch September 22, 2020 14:02
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