img2py and pyimage for MicroPython
Posté le 21/08/2022 13:35
I wanted to load and display images from files in Python on my fx-9750GIII, rather than creating them from a bunch of set_pixel() calls. There's no PIL, of course. And the open() command doesn't seem to work in MicroPython. However, imports do! So, I decided to
I wrote a small Python script that ASCII encodes and RLE compresses a black and white image as an importable Casio MicroPython module. The pyimage.py module provides draw_pyimage(), which a script can use to then decode and draw the image at a given (x, y). If you'd like to try it, the source is here: GitHub: img2py
. It works, but it's in a very early state. Please let me know if you have any ideas for improving it.