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.
User avatar
pythoncoder
Posts: 1564
Joined: Fri Jul 18, 2014 8:01 am

Utility enables read-only data to be saved in Flash

Postby pythoncoder » Sat Mar 04, 2017 10:11 am

This https://github.com/peterhinch/micropython_data_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

Return to “Programs, Libraries and Tools”

Who is online

Users browsing this forum: No registered users and 1 guest