Utility enables read-only data to be saved in Flash

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Utility enables read-only data to be saved in Flash

Post by pythoncoder » Sat Mar 04, 2017 10:11 am

This https://github.com/peterhinch/micropyth ... _to_py.git enables an arbitrary binary file to be converted to Python source. These files may be frozen as bytecode.

Each Python file has a function which returns a memoryview of the data, enabling it to be accessed or sliced with minimal RAM usage. Typical use cases are for image files or binary/text files containing constant data.
Peter Hinch
Index to my micropython libraries.

Post Reply