Skip to content

Fix issue #32 #56

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
Dec 14, 2020
Merged

Fix issue #32 #56

merged 3 commits into from
Dec 14, 2020

Conversation

yeyeto2788
Copy link

@yeyeto2788 yeyeto2788 commented Dec 14, 2020

This will finally fix the issue on other boards like the Orange Pi boards 😄

Fixes #32

Fix issue on linting removing not used variable from digitalio
@yeyeto2788
Copy link
Author

Fixes #32

Execution example:

Try number 1
A full buffer was not returned. Try again.


Try number 2
DHT sensor not found, check wiring


Try number 3
Checksum did not validate. Try again.


Try number 4
DHT sensor not found, check wiring


Try number 5
DHT sensor not found, check wiring


Try number 6
DHT sensor not found, check wiring


Try number 7
Got temp of: 21
And hum of: 22


Try number 8
DHT sensor not found, check wiring


Try number 9
A full buffer was not returned. Try again.


Try number 10
Got temp of: 21
And hum of: 22

Example script:

import time
import board
import adafruit_dht
dhtDevice = adafruit_dht.DHT11(board.PG7)

for try_number in range(1,11):
  print(f"Try number {try_number}")
  try:
    print(f"Got temp of: {dhtDevice.temperature}")
    print(f"And hum of: {dhtDevice.humidity}")
  except RuntimeError as e:
    print(e)
    time.sleep(2)
  else:
    time.sleep(2)
  print("\n")

Catch the exception raised by blinka.
@ladyada ladyada merged commit a0702e3 into adafruit:master Dec 14, 2020
@ladyada
Copy link
Member

ladyada commented Dec 14, 2020

thanx!

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 17, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_AS7341 to 1.0.1 from 1.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_AS7341#2 from mcauser/patch-1
  > Removed deprecated pylint disable 'bad-whitespace'

Updating https://github.com/adafruit/Adafruit_CircuitPython_DHT to 3.5.2 from 3.5.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_DHT#56 from yeyeto2788/fix_issue_32

Updating https://github.com/adafruit/Adafruit_CircuitPython_DS3231 to 2.4.2 from 2.4.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_DS3231#32 from MattyJeronimo/mjeronimo/fix-cortex-m0-register-width-error

Updating https://github.com/adafruit/Adafruit_CircuitPython_INA219 to 3.4.6 from 3.4.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_INA219#26 from WizardTim/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_SCD30 to 1.0.2 from 1.0.1:
  > fixing typo and adding i2c stop for register read

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bitmap_Font to 1.3.1 from 1.3.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Bitmap_Font#33 from FoamyGuy/pcf_examples
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.

DHT-Blinka fail when using libgpiod
2 participants