overflo23 / MH-Z19_MicroPython

MIT License
4 stars 4 forks source link

now on rpi pico instead of esp8266 #3

Closed thegreenlion42 closed 7 months ago

thegreenlion42 commented 1 year ago

now on rpi pico instead of esp8266...

Traceback (most recent call last): File "", line 7, in File "mhz19.py", line 56, in get_data File "mhz19.py", line 77, in crc8 IndexError: bytearray index out of range

SkelaKing commented 1 year ago

Did you ever get it working on the pico?

thegreenlion42 commented 7 months ago

Not with this library, to make the sensor work on the Pico I had to write my own code, based on this library and the documentation of the sensor.