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.
Utility enables read-only data to be saved in Flash
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Utility enables read-only data to be saved in Flash
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.