ImpulseAdventure / GUIslice

GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
https://www.impulseadventure.com/elec/guislice-gui.html
MIT License
1.16k stars 209 forks source link

Diffrent Display Driver #213

Open twuerfl opened 4 years ago

twuerfl commented 4 years ago

Feature Request or Enhancement

I'm trying to interface GUIslice with the GxTFT (2.0.2) library on STM32GENERIC (STM32F4XX). The display I intend to used has a OTM8009A display driver and a XPT2046 touch controller.

Additional context

Any help where or how to start is highly appreciated.

ImpulseAdventure commented 4 years ago

Hi Thomas --

Sorry for the delay... Yes, it should be possible to add support for GxTFT. Thankfully, ZinggJM's driver looks like it provides an API that is similar to the other Adafruit drivers, so it should be relatively straightforward.

The one challenge will be in enabling the way in which he offers a selection of the various supported displays (through includes and module instantiations). We may need to create a separate include file for GxTFT that wraps all of the includes & instances (GxIO_Class, GxCTRL_Class, TFT_Class) that you see at the top of his example sketches into a new user-customizable file, eg. GUIslice_user_gxtft.h. The GUIslice_drv_adagfx.cpp could then include this new file.

I need to complete the GUIslice 0.14.0 release, but can then take a look at what might be involved.