|
这是我最近用TFT彩屏时的测试代码。- /* Includes ------------------------------------------------------------------*/
- #include "stm32f10x.h"
- #include "delay.h"
- #include "QDTFT_demo.h"
- #include "Lcd_Driver.h"
- #include "GUI.h"
- int main(void)
- {
- SystemInit(); //System init.
- delay_init(72);//Delay init.
- Lcd_Init();
- Lcd_Clear(GRAY0);
- while(1)
- {
- LCD_LED_SET;//通过IO控制背光亮
- // QDTFT_Test_Demo(); //See the test details in QDTFT_Demo.c
- Gui_DrawLine(10,10,10,128,BLACK);
- Gui_DrawLine(10,10,32,10,BLACK);
- Gui_DrawLine(32,10,28,8,BLACK);
- Gui_DrawLine(32,10,28,12,BLACK);
- // Gui_DrawPoint(50,50,1);
- // Num_Test();//数码管字体测试
- }
- }
- /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
复制代码
|
|