UniGraphic-Fork for ST7920-LCD-controller and SH1106. Tested with 128x64 LCD with SPI and 128x64-OLED with IIC
Dependents: UniGraphic-St7920-Test AfficheurUTILECO
Fork of UniGraphic by
ILI932x.h
00001 #ifndef MBED_ILI932x_H 00002 #define MBED_ILI932x_H 00003 00004 00005 00006 #include "mbed.h" 00007 #include "TFT932x.h" 00008 00009 /** Class for ILI932x tft display controller 00010 * to be copypasted and adapted for other controllers 00011 */ 00012 class ILI932x : public TFT932x 00013 { 00014 00015 public: 00016 00017 /** Create a PAR display interface 00018 * @param displayproto PAR_8 or PAR_16 00019 * @param port GPIO port name to use 00020 * @param CS pin connected to CS of display 00021 * @param reset pin connected to RESET of display 00022 * @param DC pin connected to data/command of display 00023 * @param WR pin connected to SDI of display 00024 * @param RD pin connected to RS of display 00025 * @param name The name used by the parent class to access the interface 00026 * @param LCDSIZE_X x size in pixel - optional 00027 * @param LCDSIZE_Y y size in pixel - optional 00028 */ 00029 ILI932x(proto_t displayproto, PortName port, PinName CS, PinName reset, PinName DC, PinName WR, PinName RD, const char* name, unsigned int LCDSIZE_X = 240, unsigned int LCDSIZE_Y = 320); 00030 00031 /** Create a BUS display interface 00032 * @param displayproto BUS_8 or BUS_16 00033 * @param buspins array of PinName to group as Bus 00034 * , i.e. PinName buspins[8]={PC_0,PC_1,PC_2,PC_3,D9,D8,D7,D6}; 00035 * @param CS pin connected to CS of display 00036 * @param reset pin connected to RESET of display 00037 * @param DC pin connected to data/command of display 00038 * @param WR pin connected to SDI of display 00039 * @param RD pin connected to RS of display 00040 * @param name The name used by the parent class to access the interface 00041 * @param LCDSIZE_X x size in pixel - optional 00042 * @param LCDSIZE_Y y size in pixel - optional 00043 */ 00044 ILI932x(proto_t displayproto, PinName* buspins, PinName CS, PinName reset, PinName DC, PinName WR, PinName RD, const char* name, unsigned int LCDSIZE_X = 240, unsigned int LCDSIZE_Y = 320); 00045 00046 /** Create an SPI display interface 00047 * @param displayproto SPI_8 or SPI_16 00048 * @param Hz SPI speed in Hz 00049 * @param mosi SPI pin 00050 * @param miso SPI pin 00051 * @param sclk SPI pin 00052 * @param CS pin connected to CS of display 00053 * @param reset pin connected to RESET of display 00054 * @param name The name used by the parent class to access the interface 00055 * @param LCDSIZE_X x size in pixel - optional 00056 * @param LCDSIZE_Y y size in pixel - optional 00057 */ 00058 ILI932x(proto_t displayproto, int Hz, PinName mosi, PinName miso, PinName sclk, PinName CS, PinName reset, const char* name, unsigned int LCDSIZE_X = 240, unsigned int LCDSIZE_Y= 320); 00059 00060 00061 00062 protected: 00063 00064 00065 /** Init command sequence 00066 */ 00067 void init9325(); 00068 void init9320(); 00069 00070 }; 00071 #endif
Generated on Tue Jul 12 2022 18:00:34 by 1.7.2