This is the final version of Mini Gateway for Automation and Security desgined for Renesas GR Peach Design Contest

Dependencies:   GR-PEACH_video GraphicsFramework HTTPServer R_BSP mbed-rpc mbed-rtos Socket lwip-eth lwip-sys lwip FATFileSystem

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ILI9341.h Source File

ILI9341.h

00001 #ifndef MBED_ILI9341_H
00002 #define MBED_ILI9341_H
00003 
00004 
00005 
00006 #include "mbed.h"
00007 #include "TFT.h"
00008 
00009 /** Class for ILI9341 tft display controller
00010 * to be copypasted and adapted for other controllers
00011 */
00012 class ILI9341 : public TFT
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     ILI9341(proto_t displayproto, PortName port, PinName CS, PinName reset, PinName DC, PinName WR, PinName RD, const char* name ,const 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     * @param CS pin connected to CS of display
00035     * @param reset pin connected to RESET of display
00036     * @param DC pin connected to data/command of display
00037     * @param WR pin connected to SDI of display
00038     * @param RD pin connected to RS of display
00039     * @param name The name used by the parent class to access the interface
00040     * @param LCDSIZE_X x size in pixel - optional
00041     * @param LCDSIZE_Y y size in pixel - optional
00042     */ 
00043     ILI9341(proto_t displayproto, PinName* buspins, PinName CS, PinName reset, PinName DC, PinName WR, PinName RD, const char* name ,const unsigned int LCDSIZE_X = 240, unsigned  int LCDSIZE_Y = 320);
00044   
00045     /** Create an SPI display interface
00046     * @param displayproto SPI_8 or SPI_16
00047     * @param Hz SPI speed in Hz
00048     * @param mosi SPI pin
00049     * @param miso SPI pin
00050     * @param sclk SPI pin
00051     * @param CS pin connected to CS of display
00052     * @param reset pin connected to RESET of display
00053     * @param DC pin connected to data/command 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     ILI9341(proto_t displayproto, int Hz, PinName mosi, PinName miso, PinName sclk, PinName CS, PinName reset, PinName DC, 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 init();
00068 
00069 
00070 
00071 };
00072 #endif