Display libraries for AVR & ARM | Atmel | ESP32 | STM32 HAL and FSMC | 100+ Fonts | XPT2046 SSD1289 SSD1963 HX8357 ST7735 ILI9325 ILI9341 HY32D OLED SSD1306 SSD1331 HD44780
GNU General Public License v3.0
83
stars
28
forks
source link
HX8357_FSMC #4
Open
Aidabs opened 12 months ago
It's not working for me. I little modify "LCD_Send_Cmd" and "LCD_Send_Dat" and it's work:
define DAT 0x60080000
define CMD 0x60000000
inline static void LCD_Send_Cmd(uint16_t cmd) {
(uint16_t ) (CMD) = cmd; }
inline static void LCD_Send_Dat(uint16_t dat) {
(uint16_t ) (DAT)= dat; }
void LCD_Init(void) { LCD_RST_SET HAL_Delay(100); LCD_Send_Cmd(HX8357_SLPOUT); HAL_Delay(150); LCD_Send_Cmd(HX8357_COLMOD); HAL_Delay(10); LCD_Send_Dat(0x55); HAL_Delay(10); LCD_Send_Cmd(HX8357_DISPON); HAL_Delay(10); LCD_Send_Cmd(HX8357_INVON); HAL_Delay(10); LCD_Orientation(DEFAULT_ORIENTATION); HAL_Delay(10); }