pimoroni / pms5003-python

Python library for the PMS5003 particulate sensor
MIT License
51 stars 20 forks source link

Synchronise with new features in pimoroni/pms5003-circuitpython #14

Open kevinjwalters opened 3 years ago

kevinjwalters commented 3 years ago

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.

Gadgetoid commented 2 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.