-
Notifications
You must be signed in to change notification settings - Fork 201
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
DHTXX: Use runtime interrupt instead of UART #328
base: dev
Are you sure you want to change the base?
Conversation
Hi,
Not sure how to analyse this. |
Hi @Elfo404 |
@@ -12,7 +12,7 @@ func main() { | |||
dhtSensor := dht.New(pin, dht.DHT11) | |||
for { | |||
temp, hum, err := dhtSensor.Measurements() | |||
if err != nil { | |||
if err == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch!
@didiermichel Yes, does sound like tinygo-org/tinygo#2389. |
Implementing what was being suggested in #255 (comment).
i quickly tested this on a
itsybitsy-nrf52840
and seems to work fine.(Should) fix #255
shall I also add a smoke test for this? something like: