I have been looking for a tool to convert bitmap images into byte arrays that can be used in monochrom OLED or LCD displays. The best known tool I found to perform this task is LCD Assistant but it works only on Windows. So I had to write something similar that can be used in MacOS, Linux or even Windows. You can gess whay I called it Open LCD Assistant :)
To make the script work, you must install the following modules:
Pillow, for image manipulation module:
pip install Pillow
PyQt5, a framework for gui development
pip install PyQt5
NumPy package for array computing
pip install numpy
Or, more simply by using the following command, all the dependencies will be installed automatically
pip install requirements.txt
The program has been tested in Horizontal mode and only with u8g2 library
-
Software
-
Hardware
-
Test code
- Use the arduino code arduino_ug82_code example
-
Test result
Add a Checkbox to give the user the possibility to invert the image colors- Generate dmg and exe files
Some useful references used to write this program: