Int_lcd.h 814 B

1234567891011121314151617181920212223242526
  1. #ifndef __INT_LCD_H
  2. #define __INT_LCD_H
  3. #include "main.h"
  4. #define INT_LCD_WIDTH 800 /* 屏幕宽度 */
  5. #define INT_LCD_HEIGHT 480 /* 屏幕高度 */
  6. #define INT_LCD_FRAME_BUF_ADDR ((uint32_t)(0xC0000000)) /* 帧缓冲地址(SDRAM 起始) */
  7. /* RGB565 颜色定义 */
  8. #define LCD_COLOR_WHITE 0xFFFF
  9. #define LCD_COLOR_BLACK 0x0000
  10. #define LCD_COLOR_RED 0xF800
  11. #define LCD_COLOR_GREEN 0x07E0
  12. #define LCD_COLOR_BLUE 0x001F
  13. #define LCD_COLOR_YELLOW 0xFFE0
  14. #define LCD_COLOR_CYAN 0x07FF
  15. #define LCD_COLOR_MAGENTA 0xF81F
  16. void Int_lcd_init(void);
  17. void Int_lcd_clear(uint16_t color);
  18. void Int_lcd_draw_point(uint16_t x, uint16_t y, uint16_t color);
  19. void Int_lcd_bl_on(void);
  20. void Int_lcd_bl_off(void);
  21. #endif