EPD4in2v2 C++ Enhanced
|
The proposed architecture isolates the low level layers (already provided by waveshare), calling it from a C++ wrapper, solving some logic problems and allowing to add features without touching (or at least, reducing refactors) that low level code.
There are two parts of the wrapper:
Also, the project is built using CMake.
scripts/font-generator.py.
Script for generating width-variable fonts. Requires Pillow module. Place a .ttf font inside scripts/fonts and run the script:
Example:
It will create the output directory and place the __<font_name><font_size>.c__ file. This file must be placed manually in src/clib/Fonts/
Including the font in the project requires adding the new file to src/CMakeLists.txt and the extern reference in inc/clib/Fonts/fonts.h
The project is code-documented, and docs are auto-generated using Doxygen. The site link: https://ailr16.github.io/epd4in2v2-cpp/