| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | #ifndef __LCD_H
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | #define __LCD_H
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | #include "stm32f4xx.h"
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | #define LCD_CLK 9 // <20><><EFBFBD><EFBFBD>LCD<43><44><EFBFBD><EFBFBD>ʱ<EFBFBD>ӣ<EFBFBD><D3A3><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵӦ<D6B5><D3A6>10-70֮<30>䣬<EFBFBD><E4A3AC>λΪM
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | #define HBP 40
 | 
					
						
							|  |  |  |  | #define VBP 8
 | 
					
						
							|  |  |  |  | #define HSW 1
 | 
					
						
							|  |  |  |  | #define VSW 1
 | 
					
						
							|  |  |  |  | #define HFP 5
 | 
					
						
							|  |  |  |  | #define VFP 8
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | #define LCD_Width 480                       // LCD<43><44><EFBFBD><EFBFBD><EFBFBD>س<EFBFBD><D8B3><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LCD_Height 272                      // LCD<43><44><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD><D8BF><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LCD_Pixels (LCD_Width * LCD_Height) // <20>ֱ<EFBFBD><D6B1><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LCD_MemoryAdd 0xD0000000            // <20>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>ַ
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | //	<09>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><D4B4><EFBFBD>ƫ<EFBFBD>Ƶ<EFBFBD>ַ
 | 
					
						
							| 
									
										
										
										
											2025-07-05 19:47:28 +08:00
										 |  |  |  | //	<09><><EFBFBD><EFBFBD>Ԥ<EFBFBD><D4A4><EFBFBD><EFBFBD>emWinʹ<6E><CAB9>32λɫ<CEBB><C9AB>ʽʱ<CABD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀռ<C4BF>
 | 
					
						
							|  |  |  |  | //	<09><><EFBFBD>㷽<EFBFBD><E3B7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>32λ<32><CEBB>ɫ<EFBFBD><C9AB>ʽΪ<CABD><CEAA><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>ռ4<D5BC>ֽڣ<D6BD>ʹ<EFBFBD><CAB9>emWin<69><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD>Ϊ<EFBFBD><CEAA>480*272*4*3
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | #define LCD_MemoryAdd_OFFSET ((uint32_t)LCD_Width * LCD_Height * 4 * 3)
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | /*---------------------- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -------------------------*/ | 
					
						
							|  |  |  |  | void LCD_Init(void); | 
					
						
							|  |  |  |  | void LCD_Backlight(u8 power); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-05 19:47:28 +08:00
										 |  |  |  | /*-----------------------<2D><><EFBFBD>Ŷ<EFBFBD><C5B6><EFBFBD>--------------------------*/ | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // IO<49><4F>ʱ<EFBFBD><CAB1>
 | 
					
						
							|  |  |  |  | #define LCD_GPIO_CLK                                                           \
 | 
					
						
							|  |  |  |  |   RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_GPIOC |         \ | 
					
						
							|  |  |  |  |       RCC_AHB1Periph_GPIOD | RCC_AHB1Periph_GPIOJ | RCC_AHB1Periph_GPIOK |     \ | 
					
						
							|  |  |  |  |       RCC_AHB1Periph_GPIOI | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LTDC_R0_PORT GPIOI
 | 
					
						
							|  |  |  |  | #define LTDC_R0_PIN GPIO_Pin_15
 | 
					
						
							|  |  |  |  | #define LTDC_R0_PINSOURCE GPIO_PinSource15
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_R1_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_R1_PIN GPIO_Pin_0
 | 
					
						
							|  |  |  |  | #define LTDC_R1_PINSOURCE GPIO_PinSource0
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_R2_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_R2_PIN GPIO_Pin_1
 | 
					
						
							|  |  |  |  | #define LTDC_R2_PINSOURCE GPIO_PinSource1
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_R3_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_R3_PIN GPIO_Pin_2
 | 
					
						
							|  |  |  |  | #define LTDC_R3_PINSOURCE GPIO_PinSource2
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_R4_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_R4_PIN GPIO_Pin_3
 | 
					
						
							|  |  |  |  | #define LTDC_R4_PINSOURCE GPIO_PinSource3
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | #define LTDC_R5_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_R5_PIN GPIO_Pin_4
 | 
					
						
							|  |  |  |  | #define LTDC_R5_PINSOURCE GPIO_PinSource4
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | #define LTDC_R6_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_R6_PIN GPIO_Pin_5
 | 
					
						
							|  |  |  |  | #define LTDC_R6_PINSOURCE GPIO_PinSource5
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | #define LTDC_R7_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_R7_PIN GPIO_Pin_6
 | 
					
						
							|  |  |  |  | #define LTDC_R7_PINSOURCE GPIO_PinSource6
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | // <20><>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LTDC_G0_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_G0_PIN GPIO_Pin_7
 | 
					
						
							|  |  |  |  | #define LTDC_G0_PINSOURCE GPIO_PinSource7
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_G1_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_G1_PIN GPIO_Pin_8
 | 
					
						
							|  |  |  |  | #define LTDC_G1_PINSOURCE GPIO_PinSource8
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_G2_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_G2_PIN GPIO_Pin_9
 | 
					
						
							|  |  |  |  | #define LTDC_G2_PINSOURCE GPIO_PinSource9
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_G3_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_G3_PIN GPIO_Pin_10
 | 
					
						
							|  |  |  |  | #define LTDC_G3_PINSOURCE GPIO_PinSource10
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_G4_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_G4_PIN GPIO_Pin_11
 | 
					
						
							|  |  |  |  | #define LTDC_G4_PINSOURCE GPIO_PinSource11
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_G5_PORT GPIOK
 | 
					
						
							|  |  |  |  | #define LTDC_G5_PIN GPIO_Pin_0
 | 
					
						
							|  |  |  |  | #define LTDC_G5_PINSOURCE GPIO_PinSource0
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_G6_PORT GPIOK
 | 
					
						
							|  |  |  |  | #define LTDC_G6_PIN GPIO_Pin_1
 | 
					
						
							|  |  |  |  | #define LTDC_G6_PINSOURCE GPIO_PinSource1
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_G7_PORT GPIOK
 | 
					
						
							|  |  |  |  | #define LTDC_G7_PIN GPIO_Pin_2
 | 
					
						
							|  |  |  |  | #define LTDC_G7_PINSOURCE GPIO_PinSource2
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | // <20><>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LTDC_B0_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_B0_PIN GPIO_Pin_12
 | 
					
						
							|  |  |  |  | #define LTDC_B0_PINSOURCE GPIO_PinSource12
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_B1_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_B1_PIN GPIO_Pin_13
 | 
					
						
							|  |  |  |  | #define LTDC_B1_PINSOURCE GPIO_PinSource13
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_B2_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_B2_PIN GPIO_Pin_14
 | 
					
						
							|  |  |  |  | #define LTDC_B2_PINSOURCE GPIO_PinSource14
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_B3_PORT GPIOJ
 | 
					
						
							|  |  |  |  | #define LTDC_B3_PIN GPIO_Pin_15
 | 
					
						
							|  |  |  |  | #define LTDC_B3_PINSOURCE GPIO_PinSource15
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_B4_PORT GPIOK
 | 
					
						
							|  |  |  |  | #define LTDC_B4_PIN GPIO_Pin_3
 | 
					
						
							|  |  |  |  | #define LTDC_B4_PINSOURCE GPIO_PinSource3
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_B5_PORT GPIOK
 | 
					
						
							|  |  |  |  | #define LTDC_B5_PIN GPIO_Pin_4
 | 
					
						
							|  |  |  |  | #define LTDC_B5_PINSOURCE GPIO_PinSource4
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_B6_PORT GPIOK
 | 
					
						
							|  |  |  |  | #define LTDC_B6_PIN GPIO_Pin_5
 | 
					
						
							|  |  |  |  | #define LTDC_B6_PINSOURCE GPIO_PinSource5
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_B7_PORT GPIOK
 | 
					
						
							|  |  |  |  | #define LTDC_B7_PIN GPIO_Pin_6
 | 
					
						
							|  |  |  |  | #define LTDC_B7_PINSOURCE GPIO_PinSource6
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | // <20><><EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD><C5BA><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LTDC_CLK_PORT GPIOI // LCDʱ<44><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LTDC_CLK_PIN GPIO_Pin_14
 | 
					
						
							|  |  |  |  | #define LTDC_CLK_PINSOURCE GPIO_PinSource14
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_HSYNC_PORT GPIOI // <20><>ͬ<EFBFBD><CDAC>
 | 
					
						
							|  |  |  |  | #define LTDC_HSYNC_PIN GPIO_Pin_12
 | 
					
						
							|  |  |  |  | #define LTDC_HSYNC_PINSOURCE GPIO_PinSource12
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_VSYNC_PORT GPIOI // ֡ͬ<D6A1><CDAC>
 | 
					
						
							|  |  |  |  | #define LTDC_VSYNC_PIN GPIO_Pin_13
 | 
					
						
							|  |  |  |  | #define LTDC_VSYNC_PINSOURCE GPIO_PinSource13
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_DE_PORT GPIOK // <20><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>
 | 
					
						
							|  |  |  |  | #define LTDC_DE_PIN GPIO_Pin_7
 | 
					
						
							|  |  |  |  | #define LTDC_DE_PINSOURCE GPIO_PinSource7
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | #define LTDC_Black_PORT GPIOD // <20><><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | #define LTDC_Black_PIN GPIO_Pin_13
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | typedef struct { | 
					
						
							|  |  |  |  |   int xs; | 
					
						
							|  |  |  |  |   int ys; | 
					
						
							|  |  |  |  |   int xe; | 
					
						
							|  |  |  |  |   int ye; | 
					
						
							|  |  |  |  | } LCD_WindowStruct; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | typedef struct { | 
					
						
							|  |  |  |  |   int x_size; | 
					
						
							|  |  |  |  |   int y_size; | 
					
						
							|  |  |  |  |   int color; | 
					
						
							|  |  |  |  |   int bkColor; | 
					
						
							|  |  |  |  |   int effective; // 1<><31><EFBFBD><EFBFBD><EFBFBD>ƴ<EFBFBD><C6B4><EFBFBD><EFBFBD><EFBFBD>Ч
 | 
					
						
							|  |  |  |  |   LCD_WindowStruct win; | 
					
						
							|  |  |  |  |   LCD_WindowStruct realwin; | 
					
						
							|  |  |  |  |   u16 *draw; | 
					
						
							|  |  |  |  |   u16 *show; | 
					
						
							|  |  |  |  |   void (*fresh)(void); | 
					
						
							|  |  |  |  |   int LcdSwitchEn; | 
					
						
							|  |  |  |  |   int LayerBuffEnter; | 
					
						
							|  |  |  |  | } LCD_Struct; | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-05 19:47:28 +08:00
										 |  |  |  | // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>LCD<43><44><EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD>ʼ<EFBFBD><CABC>
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | void LCD_LayerInit(void); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><>ȡͼ<C8A1><CDBC><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>ַ
 | 
					
						
							|  |  |  |  | u32 *LCD_GetShowAddr(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><>ȡͼ<C8A1><CDBC><EFBFBD><EFBFBD><EFBFBD>Ƶ<EFBFBD>ַ
 | 
					
						
							|  |  |  |  | u32 *LCD_GetDrawAddr(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_SetLayer(u32 AddrIndex); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_SetDrawLayer(u32 Index); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_SetLcdColor(u32 color); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_SetLcdBkColor(u32 color); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_SetLcdColor16(u32 color); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_SetLcdBkColor16(u32 color); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_GetLcdColor(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_GetLcdBkColor(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_GetLcdColor16(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | u32 LCD_GetLcdBkColor16(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20>㸴<EFBFBD><E3B8B4>
 | 
					
						
							|  |  |  |  | void LCD_LayerCopy(int dst, int src); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><>ʼ<EFBFBD>ڻ<EFBFBD><DABB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | void LCD_LayerBufferOn(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | void LCD_LayerBuffShow(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><>ȡ<EFBFBD><C8A1>Ļˢ<C4BB><CBA2>״̬<D7B4><CCAC>1<EFBFBD><31><EFBFBD><EFBFBD>ˢ<EFBFBD><CBA2>
 | 
					
						
							|  |  |  |  | int LCD_GetLayerUpdataStat(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><><EFBFBD>뻺<EFBFBD><EBBBBA><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | void LCD_EnterLayerBuff(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20>л<EFBFBD><D0BB>㣬<EFBFBD><E3A3AC><EFBFBD>ø<EFBFBD><C3B8><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƶʱ<C6B5><CAB1>
 | 
					
						
							|  |  |  |  | void LCD_SwitchLayerBuff(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | void LCD_ExitLayerBuff(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><><EFBFBD>û<C3BB><EEB6AF><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | void LCD_SetWindow(int x_s, int y_s, int x_size, int y_size); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | int LCD_GetWindowSizeX(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | int LCD_GetWindowSizeY(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | int LCD_GetLcdSizeX(void); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | int LCD_GetLcdSizeY(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><><EFBFBD>û<EFBFBD><C3BB><EFBFBD>ģʽ<C4A3><CABD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD>Ʊ<EFBFBD><C6B1><EFBFBD>
 | 
					
						
							|  |  |  |  | void LCD_SetLcdDrawMode(int mode); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | void LCD_Clear(void); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>ʾ
 | 
					
						
							|  |  |  |  | void LCD_ClearRect(int x, int y, int x_size, int y_size); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | void LCD_DrawPoint(int x, int y, u32 mode); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | void LCD_DrawPointSafe(int x, int y, u32 mode); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB><EFBFBD>㣬<EFBFBD><E3A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>ɫ
 | 
					
						
							|  |  |  |  | void LCD_DrawPointSafeColor(int x, int y, u16 color); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><>ָ<EFBFBD><D6B8>ɫ<C9AB><CDB8><EFBFBD>Ȼ<EFBFBD><C8BB><EFBFBD>0~32
 | 
					
						
							|  |  |  |  | void LCD_DrawPointSafeColorAlpha(int x, int y, u16 color, u8 alpha); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Σ<EFBFBD><CEA3>Ѵ<EFBFBD><D1B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊԭ<CEAA><D4AD>
 | 
					
						
							|  |  |  |  | void LCD_FillRectByColor(int x, int y, int x_size, int y_size); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><><EFBFBD><CDB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Σ<EFBFBD><CEA3>Ѵ<EFBFBD><D1B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊԭ<CEAA><D4AD>
 | 
					
						
							|  |  |  |  | void LCD_FillRectByColorAlpha(int x, int y, int x_size, int y_size, u8 alpha); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // void LCD_FillRect16 (u16 *buff,int xsize,int ysize);
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // void LCD_FillRectOff16 (u16 *buff,int x_s,int y_s,int xsize,int ysize);
 | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | void LCD_FillRectOff16At(int s_x, int s_y, int s_xsize, int s_ysize, u16 *buff, | 
					
						
							|  |  |  |  |                          int x_s, int y_s, int xsize, int ysize); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | // <20><><EFBFBD><EFBFBD><EFBFBD><CDB8><EFBFBD>ȵ<EFBFBD>ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | void LCD_FillRectOffAtAlpha(int s_x, int s_y, int s_xsize, int s_ysize, | 
					
						
							|  |  |  |  |                             void *buff, int x_s, int y_s, int xsize, int ysize); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | void LCD_GetColors(u16 *buff, int x_s, int y_s, int x_size, int y_size); | 
					
						
							| 
									
										
										
										
											2025-06-27 00:32:57 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-10 11:30:57 +08:00
										 |  |  |  | #endif
 |