drivers
drivers copied to clipboard
DHTXX: Use runtime interrupt instead of UART
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
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
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 here you go :) https://github.com/tinygo-org/drivers/pull/381
Not sure how to analyse this. it seems related to tinygo-org issue 2389
@didiermichel Yes, does sound like tinygo-org/tinygo#2389.