Files
-
PCB ESP32 / bak / PCB1.PcbDoc
-
PCB ESP32 / bak / Sheet1.SchDoc
-
PCB ESP32 / bak / Sheet2.SchDoc
-
PCB ESP32 / Control_Board / Conns.SchDoc
-
PCB ESP32 / Control_Board / Control_Board.PcbDoc
-
PCB ESP32 / Control_Board / PCB2.PcbDoc
-
PCB ESP32 / Control_Board / Circuit Maker / Control_Board.PcbDoc
-
PCB ESP32 / Main / PCB2.PcbDoc
-
PCB ESP32 / Main / Sheet1.SchDoc
-
PCB ESP32 / Main / Sheet2.SchDoc
-
PCB ESP32 / Main / Sheet3.SchDoc
-
PCB ESP32 / Main / Sheet4.SchDoc
-
PCB ESP32 / Main / Sheet4_Matrix.SchDoc
-
PCB ESP32 / Matrix / PCB1.PcbDoc
-
PCB ESP32 / Matrix2 / PCB2.PcbDoc
-
PCB ESP32 / Panel / panel.PcbDoc
-
PCB ESP32 / refs / OnOnfre_DevBoard_rev4.sch
-
PCB ESP32 / Resistor Patch / 1 / ResistorPatch1.PcbDoc
-
PCB ESP32 / Resistor Patch / 1 / ResistorPatch1.SchDoc
-
PCB ESP32 / Resistor Patch / 2 / ResistorPatch2.PcbDoc
-
PCB ESP32 / Resistor Patch / 2 / ResistorPatch2.SchDoc
-
PCB ESP32 / SOT223 Patch / PCB1.PcbDoc
-
PCB ESP32 / SOT223 Patch / Sheet1.SchDoc
Last update 5 years 4 months
by Afonso Muralha
ili9341.h// ------------------------------------ // µGUI example project // http://www.embeddedlightning.com/ // ------------------------------------ #ifndef __ILI9341_H #define __ILI9341_H #include "stm32f4xx.h" #include "stm32f4xx_gpio.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_fmc.h" #define LCD_NCS_PIN GPIO_Pin_2 #define LCD_NCS_GPIO_PORT GPIOC #define LCD_NCS_GPIO_CLK RCC_AHB1Periph_GPIOC /** * @brief LCD Command/data pin */ #define LCD_WRX_PIN GPIO_Pin_13 #define LCD_WRX_GPIO_PORT GPIOD #define LCD_WRX_GPIO_CLK RCC_AHB1Periph_GPIOD /** * @brief LCD SPI Interface pins */ #define LCD_SPI_SCK_PIN GPIO_Pin_7 /* PF.07 */ #define LCD_SPI_SCK_GPIO_PORT GPIOF /* GPIOF */ #define LCD_SPI_SCK_GPIO_CLK RCC_AHB1Periph_GPIOF #define LCD_SPI_SCK_SOURCE GPIO_PinSource7 #define LCD_SPI_SCK_AF GPIO_AF_SPI5 #define LCD_SPI_MISO_PIN GPIO_Pin_8 /* PF.08 */ #define LCD_SPI_MISO_GPIO_PORT GPIOF /* GPIOF */ #define LCD_SPI_MISO_GPIO_CLK RCC_AHB1Periph_GPIOF #define LCD_SPI_MISO_SOURCE GPIO_PinSource8 #define LCD_SPI_MISO_AF GPIO_AF_SPI5 #define LCD_SPI_MOSI_PIN GPIO_Pin_9 /* PF.09 */ #define LCD_SPI_MOSI_GPIO_PORT GPIOF /* GPIOF */ #define LCD_SPI_MOSI_GPIO_CLK RCC_AHB1Periph_GPIOF #define LCD_SPI_MOSI_SOURCE GPIO_PinSource9 #define LCD_SPI_MOSI_AF GPIO_AF_SPI5 #define LCD_SPI SPI5 #define LCD_SPI_CLK RCC_APB2Periph_SPI5 // Prototypen void ili9341_init(void); #define LCD_SLEEP_OUT 0x11 /* Sleep out register */ #define LCD_GAMMA 0x26 /* Gamma register */ #define LCD_DISPLAY_OFF 0x28 /* Display off register */ #define LCD_DISPLAY_ON 0x29 /* Display on register */ #define LCD_COLUMN_ADDR 0x2A /* Colomn address register */ #define LCD_PAGE_ADDR 0x2B /* Page address register */ #define LCD_GRAM 0x2C /* GRAM register */ #define LCD_MAC 0x36 /* Memory Access Control register*/ #define LCD_PIXEL_FORMAT 0x3A /* Pixel Format register */ #define LCD_WDB 0x51 /* Write Brightness Display register */ #define LCD_WCD 0x53 /* Write Control Display register*/ #define LCD_RGB_INTERFACE 0xB0 /* RGB Interface Signal Control */ #define LCD_FRC 0xB1 /* Frame Rate Control register */ #define LCD_BPC 0xB5 /* Blanking Porch Control register*/ #define LCD_DFC 0xB6 /* Display Function Control register*/ #define LCD_POWER1 0xC0 /* Power Control 1 register */ #define LCD_POWER2 0xC1 /* Power Control 2 register */ #define LCD_VCOM1 0xC5 /* VCOM Control 1 register */ #define LCD_VCOM2 0xC7 /* VCOM Control 2 register */ #define LCD_POWERA 0xCB /* Power control A register */ #define LCD_POWERB 0xCF /* Power control B register */ #define LCD_PGAMMA 0xE0 /* Positive Gamma Correction register*/ #define LCD_NGAMMA 0xE1 /* Negative Gamma Correction register*/ #define LCD_DTCA 0xE8 /* Driver timing control A */ #define LCD_DTCB 0xEA /* Driver timing control B */ #define LCD_POWER_SEQ 0xED /* Power on sequence register */ #define LCD_3GAMMA_EN 0xF2 /* 3 Gamma enable register */ #define LCD_INTERFACE 0xF6 /* Interface control register */ #define LCD_PRC 0xF7 /* Pump ratio control register */ #endif