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

Read decimal value also for dht11 #102

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

FoamyGuy
Copy link

@ladyada

Resolves: #98

Looking at the datasheet does seem to confirm the 4th byte holding data for the decimal value by my understanding. I also referenced the Arduino driver and found comparable step in that code here: https://github.com/adafruit/DHT-sensor-library/blob/master/DHT.cpp#L95 and borrowed from it's syntax some.

I didn''t think the float cast mentioned in the issue code is necessary because the division will make it into a float.

@FoamyGuy FoamyGuy merged commit daca831 into adafruit:main Nov 20, 2024
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 21, 2024
Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO055 to 5.4.16 from 5.4.15:
  > Merge pull request adafruit/Adafruit_CircuitPython_BNO055#126 from FoamyGuy/config_mode_fix

Updating https://github.com/adafruit/Adafruit_CircuitPython_DHT to 4.0.6 from 4.0.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_DHT#102 from FoamyGuy/dht11_decimal

Updating https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SH1107 to 1.7.2 from 1.7.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_SH1107#24 from FoamyGuy/rotation_fix

Updating https://github.com/adafruit/Adafruit_CircuitPython_DotStar to 2.2.14 from 2.2.13:
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#67 from FoamyGuy/rpi_example_comment

Updating https://github.com/adafruit/Adafruit_CircuitPython_Fingerprint to 2.2.18 from 2.2.17:
  > Merge pull request adafruit/Adafruit_CircuitPython_Fingerprint#56 from FoamyGuy/setsysparam_sleep

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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.

Raspberry Pi 4 + DHT11 Sensor no floating point temps
2 participants