drivers icon indicating copy to clipboard operation
drivers copied to clipboard

DHTXX: Use runtime interrupt instead of UART

Open Elfo404 opened this issue 3 years ago • 4 comments

Implementing what was being suggested in https://github.com/tinygo-org/drivers/issues/255#issuecomment-852140542.

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:

tinygo build -size short -o ./build/test.hex -target=itsybitsy-nrf52840 ./examples/dht/main.go

Elfo404 avatar Oct 12 '21 16:10 Elfo404

Hi, I have tried this with arduino target and I got folowing error at compilation time:

error: interp: ptrtoint integer size does not equal pointer size

Not sure how to analyse this. it seems related to tinygo-org issue 2389

didiermichel avatar Feb 09 '22 22:02 didiermichel

Hi @Elfo404 I spent some time struggling with why the DHT example was not printing any data. Do you think you could do a separate PR with your commit fixing the example? Since it is a quick fix and could be merged easily?! Thanks a lot

doniacld avatar Feb 19 '22 14:02 doniacld

@doniacld here you go :) https://github.com/tinygo-org/drivers/pull/381

Elfo404 avatar Feb 19 '22 15:02 Elfo404

Not sure how to analyse this. it seems related to tinygo-org issue 2389

@didiermichel Yes, does sound like tinygo-org/tinygo#2389.

stevegt avatar Mar 22 '22 20:03 stevegt