Open kevinjwalters opened 3 years ago
Agreed. I just ported these to a new MicroPython library and they seem to work well!
I think it might be possible to abstract away the UART and GPIO access somewhat so that they can share a common codebase with just those portions changed. There seem to be some platform-specific quirks regarding UART reads being blocking vs non-blocking and differing buffer sizes but hopefully nothing we can't smooth over.
This library is very similar to pimoroni/pms5003-circuitpython and a lot of improvements were added to that in
With some luck (and testing) the pms5003-python may be able to be generated from pms5003-circuitpython code with a minor patch. The versions could synchronise at
0.0.6
as a partial indication of their linkage.