PIO/Asyncio implementation of one wire #13172
Unanswered
smacx250
asked this question in
RP2040 / Pico
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bit-banging out the one-wire protocol to measure temperatures (DS18B20) can use a lot of CPU time. I have implemented (much of) the protocol using PIO and asyncio to free up the processor for other stuff. I'm fairly new to python, so this is rough, but I offer it free and clear if it's useful for other's further development.
https://github.com/smacx250/rppico/blob/main/stuff/pio_one_wire.py
Beta Was this translation helpful? Give feedback.
All reactions