| 1234567891011121314151617181920212223242526272829 |
- #ifndef __INT_LCD_H
- #define __INT_LCD_H
- #include "main.h"
- #define INT_LCD_WIDTH 800 /* 屏幕宽度 */
- #define INT_LCD_HEIGHT 480 /* 屏幕高度 */
- #define INT_LCD_FRAME_BUF_ADDR ((uint32_t)(0xC0000000)) /* 帧缓冲地址(SDRAM 起始) */
- #define INT_LCD_FRAME_BUF_SIZE (INT_LCD_WIDTH * INT_LCD_HEIGHT * 2) /* 单帧缓冲字节数 768KB */
- #define INT_LCD_FRAME_BUF_ADDR2 (INT_LCD_FRAME_BUF_ADDR + INT_LCD_FRAME_BUF_SIZE) /* 第二帧缓冲 0xC00C0000 */
- /* RGB565 颜色定义 */
- #define LCD_COLOR_WHITE 0xFFFF
- #define LCD_COLOR_BLACK 0x0000
- #define LCD_COLOR_RED 0xF800
- #define LCD_COLOR_GREEN 0x07E0
- #define LCD_COLOR_BLUE 0x001F
- #define LCD_COLOR_YELLOW 0xFFE0
- #define LCD_COLOR_CYAN 0x07FF
- #define LCD_COLOR_MAGENTA 0xF81F
- void Int_lcd_init(void);
- void Int_lcd_clear(uint16_t color);
- void Int_lcd_draw_point(uint16_t x, uint16_t y, uint16_t color);
- void Int_lcd_power_on(void);
- void Int_lcd_bl_on(void);
- void Int_lcd_bl_off(void);
- #endif
|