標題: stm32f407 2.2寸彩屏驅動_176220 Cadence格式的PCB工程 [打印本頁]

作者: loushaofeng    時間: 2021-2-28 13:00
標題: stm32f407 2.2寸彩屏驅動_176220 Cadence格式的PCB工程
驅動為ILI9225,采用并口驅動,附件包含屏幕的底版Cadence工程文件,直接可以制版。

單片機源程序如下:
  1. #include "stm32f4xx.h"
  2. #include "led.h"
  3. #include <stdio.h>
  4. #include "timer.h"

  5. extern const unsigned char gImage_qq[3200];
  6. extern const unsigned char gImage_hua[77440];
  7. extern const unsigned char gImage_shui[77440];
  8. int main(void)
  9. {
  10.   LED_GPIO_Config();                  //GPIO管腳初始化
  11.         delay_init();
  12.         Initial();
  13.         BL_ON;
  14.         showimage(gImage_shui);//圖片顯示示例
  15.         delay_s(10);        
  16.   while (1)
  17.   {
  18.           Lcd_Clear(RED);
  19.           delay_s(3);
  20.         Lcd_Clear(GREEN);
  21.          delay_s(3);
  22.         Lcd_Clear(BLUE);
  23.          delay_s(3);
  24.         Lcd_Clear(YELLOW);
  25.          delay_s(3);
  26.           Lcd_Clear(BLACK);
  27.          delay_s(3);
  28.           Lcd_Clear(WHITE);
  29.          delay_s(3);
  30.           showimage(gImage_hua);//圖片顯示示例
  31.         Gui_DrawFont_GBK16(30,155,BLACK,YELLOW,"深圳市丹杰科技");
  32.         delay_s(100);
  33.   }
  34. }





  35. /*******************************************************************************
  36. * Function Name   : assert_failed
  37. * Description          :
  38. *                                       
  39. * Input                      : None
  40. * Output                  : None
  41. * Return                  : None.
  42. *******************************************************************************/
  43. #ifdef  USE_FULL_ASSERT
  44. void assert_failed(uint8_t* file, uint32_t line)
  45. {
  46.   /* User can add his own implementation to report the file name and line number,
  47.      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line)
  48.         */

  49.   /* Infinite loop */
  50.   while (1)
  51.   {
  52.   }
  53. }
  54. #endif
復制代碼


所有資料51hei提供下載:
丹杰2.2tft STM32F407_176220.7z (1.83 MB, 下載次數(shù): 12)






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