Closed klaasbrant closed 2 years ago
I'm working on supporting the displays with a single code base by adding additional init parameters and using configuration classes or modules for each display.
That is good news. I will, for myself, create a wrapper class in python for now. Let me know if I can be of help in e.g. testing. Closing the "issue".
Thanks for the great mpy extensions for ST7789 and ILI9342. They are great! The ILI9342 also works on ILI9341 displays which are almost identical. The difference is they are 240x320 and not 320x240, the colors are inverted and your rotation modes are flipped, so mirror modes an normal modes are reverse: 1-4 <-> 5-8 So with this in mind the following will work on a ili9341:
def main():
Would it be possible to solve this in an elegant way? e.g. pass as parameter to init? Or even better merge the ST7789 and ILI9342 into one DISPLAY extension that servers all 3 types?
If you want I can give you a hand.
Have you ever looked at the mpy fork from Loboris and his display implementation? (see https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/display ). Many people love the loboris fork but it now outdated and he abandoned the project. Loboris stuff is not easy to update and also it is near to impossible to extract stuff from it. His implementation is more a less a separate port for esp32