标题: 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, 下载次数: 12)






欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1