標(biāo)題: STM32 TFT彩屏程序代碼 [打印本頁]

作者: 進而種    時間: 2020-10-8 15:38
標(biāo)題: STM32 TFT彩屏程序代碼
這是我最近用TFT彩屏?xí)r的測試代碼。
  1. /* Includes ------------------------------------------------------------------*/
  2. #include "stm32f10x.h"
  3. #include "delay.h"
  4. #include "QDTFT_demo.h"
  5. #include "Lcd_Driver.h"
  6. #include "GUI.h"


  7. int main(void)
  8. {

  9.   SystemInit();        //System init.
  10.   delay_init(72);//Delay init.
  11.                 Lcd_Init();
  12.                 Lcd_Clear(GRAY0);
  13.   while(1)
  14.   {  
  15.                         LCD_LED_SET;//通過IO控制背光亮
  16. //                QDTFT_Test_Demo();        //See the test details in QDTFT_Demo.c               
  17.                 Gui_DrawLine(10,10,10,128,BLACK);
  18.                 Gui_DrawLine(10,10,32,10,BLACK);
  19.                 Gui_DrawLine(32,10,28,8,BLACK);
  20.                 Gui_DrawLine(32,10,28,12,BLACK);
  21. //                Gui_DrawPoint(50,50,1);
  22. //                Num_Test();//數(shù)碼管字體測試
  23.   }

  24. }





  25. /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
復(fù)制代碼


STM32 SPI綜合測試代碼.7z

204.91 KB, 下載次數(shù): 16, 下載積分: 黑幣 -5






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1