Page 1 of 1

Utility enables read-only data to be saved in Flash

Posted: Sat Mar 04, 2017 10:11 am
by pythoncoder
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.