Open dhalbert opened 3 years ago
Why not call it _1wire_read
, as the protocol is called?
hm cause it isnt 1 wire (?) and weve got something with that name already
DHT is a one-wire protocol but is not the "official" "Dallas" one-wire protocol, so it's not compatible. DHT returns 5 bytes; Dallas returns 8 bytes, and I don't know whether the timing is similar in any way.
Sorry, I was misinformed.
As mentioned in https://github.com/adafruit/circuitpython/pull/4689#issuecomment-830649832 and to support #4696, it would be convenient to have a small C module that can do the DHT-style read protocol, without needing the entirety of
PulseIn
It would implement just the basic read, like this code in the DHT sensor library. The Python library would take care of all of the decoding, etc.