forked from xuos/xiuos
				
			support lcd demo on nuttx and optimize lt768 drivers
This commit is contained in:
		
							parent
							
								
									485911f15f
								
							
						
					
					
						commit
						6603f121c6
					
				|  | @ -35,7 +35,7 @@ | ||||||
| 
 | 
 | ||||||
| void LcdDemo(void) | void LcdDemo(void) | ||||||
| { | { | ||||||
|     int x1 = 100, y1 = 100, x2 = 200, y2 = 200; |     int x1 = 50, y1 = 50, x2 = LCD_XSIZE_TFT - 50, y2 = LCD_YSIZE_TFT - 50; | ||||||
| 
 | 
 | ||||||
|     Main_Image_Start_Address(LCD_START_ADDR); |     Main_Image_Start_Address(LCD_START_ADDR); | ||||||
|     Main_Image_Width(LCD_XSIZE_TFT); |     Main_Image_Width(LCD_XSIZE_TFT); | ||||||
|  | @ -49,11 +49,23 @@ void LcdDemo(void) | ||||||
| 
 | 
 | ||||||
|     for(int i = 0; i < 3; i++) |     for(int i = 0; i < 3; i++) | ||||||
|     { |     { | ||||||
|         syslog(LOG_NOTICE, "Disp_demo %d\n", i); |         x1 = 50; | ||||||
|  |         y1 = 50; | ||||||
|  |         x2 = LCD_XSIZE_TFT - 50; | ||||||
|  |         y2 = LCD_YSIZE_TFT - 50; | ||||||
|  |         syslog(LOG_NOTICE, "Disp_demo %d (%d,%d - %d,%d)\n", i, x1, y1, x2, y2); | ||||||
|         LT768_DrawSquare_Fill(x1, y1, x2, y2, Red); |         LT768_DrawSquare_Fill(x1, y1, x2, y2, Red); | ||||||
|         up_mdelay(2000); |         up_mdelay(2000); | ||||||
|  |         x1 += 20; | ||||||
|  |         y1 += 20; | ||||||
|  |         x2 -= 20; | ||||||
|  |         y2 -= 20; | ||||||
|         LT768_DrawSquare_Fill(x1, y1, x2, y2, Green); |         LT768_DrawSquare_Fill(x1, y1, x2, y2, Green); | ||||||
|         up_mdelay(2000); |         up_mdelay(2000); | ||||||
|  |         x1 += 20; | ||||||
|  |         y1 += 20; | ||||||
|  |         x2 -= 20; | ||||||
|  |         y2 -= 20; | ||||||
|         LT768_DrawSquare_Fill(x1, y1, x2, y2, Blue); |         LT768_DrawSquare_Fill(x1, y1, x2, y2, Blue); | ||||||
|         up_mdelay(2000); |         up_mdelay(2000); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  | @ -62,4 +62,7 @@ CONFIG_K210_HAVE_LCD=y | ||||||
| CONFIG_K210_LCD=y | CONFIG_K210_LCD=y | ||||||
| CONFIG_K210_LCD_BACKLIGHT=y | CONFIG_K210_LCD_BACKLIGHT=y | ||||||
| CONFIG_LCD=y | CONFIG_LCD=y | ||||||
| CONFIG_LCD_LT768=y | CONFIG_LCD_LT768=y | ||||||
|  | 
 | ||||||
|  | CONFIG_USER_TEST=y | ||||||
|  | CONFIG_USER_TEST_LCD=y | ||||||
|  |  | ||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue