My controller identifies as an ILI9328, but only works if initialised as an ILI9325. This fork includes a fix to force 9325 initialization when a 9328 is detected.
Dependents: TouchScreenCalibrate TouchScreenGUIDemo
Fork of UniGraphic by
Diff: Display/TFT932x.cpp
- Revision:
- 34:091b954c3205
- Parent:
- 33:5743f9c16aa2
--- a/Display/TFT932x.cpp Mon Apr 11 16:54:35 2016 +0000 +++ b/Display/TFT932x.cpp Sun Jun 21 15:23:02 2020 +0100 @@ -9,6 +9,7 @@ #if DEVICE_PORTINOUT #include "PAR8.h" #include "PAR16.h" +#include "MINISTM32.h" #endif //#include "mbed_debug.h" @@ -41,6 +42,23 @@ // cls(); // locate(0,0); } + +TFT932x::TFT932x(const char *name) + : GraphicsDisplay(name), screensize_X(240), screensize_Y(320) +{ + proto = new MINISTM32(); + // set_orientation(0); + setForeground(White); + setBackground(Black); + set_auto_up(false); //we don't have framebuffer + usefastwindow=false; + fastwindowready=false; + is18bit=false; + isBGR=false; + flipped=0; + // cls(); + // locate(0,0); +} #endif TFT932x::TFT932x(proto_t displayproto, PinName* buspins, PinName CS, PinName reset, PinName DC, PinName WR, PinName RD, const int lcdsize_x, const int lcdsize_y, const char *name)