chrisb2 / pyb_ina219

This library for MicroPython makes it easy to leverage the complex functionality of the Texas Instruments INA219 sensor to measure voltage, current and power.
MIT License
54 stars 19 forks source link

ValueError: incompatible .mpy file #5

Closed fanlessfan closed 3 years ago

fanlessfan commented 3 years ago

I got error when I try to import ina219.mpy in a ESP8266 broad. (D1 mini)

Traceback (most recent call last): File "", line 1, in ValueError: incompatible .mpy file

chrisb2 commented 3 years ago

Sorry I should have deleted the .mpy files a long time ago, they are not portable between versions of micropython and I would have to build and maintain a load of versions. You can build them yourself as explained in: https://github.com/micropython/micropython/tree/master/mpy-cross

Quickest way to get going is probably docker image mentioned in: https://github.com/micropython/micropython/tree/master/ports/esp8266

Chris