wasp-os / wasp-os

A MicroPython based development environment for smart watches (including Pine64 PineTime)
https://wasp-os.readthedocs.io/
GNU General Public License v3.0
819 stars 224 forks source link

(u)zlib missing #19

Closed cool2man closed 4 years ago

cool2man commented 4 years ago

The first prototype of a png-8 viewer runs in the emulator, but couldn't run on a real device.

While the simulator has a zlib available (but no uzlib, which I would prefere because of the existing of the DecompIO function), on real clock neither the zlib, nor the uzlib is avalable. For me it looks like that the uzlib for micropython is compiled, but I have no idea, why it is not available.

Any help how this yould be fixed?

Thanks and regards

daniel-thompson commented 4 years ago

Micropython is highly configurable and different ports can enable/disable different config options to achieve the best balance of code size versus features.

By default the nRF port has most of the features turns off and this includes uzlib. I've enabled a few modules for wasp-os but if you want to use the zlib stuff you will have to enable it, see: https://github.com/daniel-thompson/micropython/blob/5424de70d7cfb1d53828b54cd1df509c3f0fee74/ports/nrf/mpconfigport.h#L126

cool2man commented 4 years ago

Thanks - this worked.