驱动为ILI9225,采用并口驱动,附件包含屏幕的底版Cadence工程文件,直接可以制版。
单片机源程序如下:
- #include "stm32f4xx.h"
- #include "led.h"
- #include <stdio.h>
- #include "timer.h"
- extern const unsigned char gImage_qq[3200];
- extern const unsigned char gImage_hua[77440];
- extern const unsigned char gImage_shui[77440];
- int main(void)
- {
- LED_GPIO_Config(); //GPIO管脚初始化
- delay_init();
- Initial();
- BL_ON;
- showimage(gImage_shui);//图片显示示例
- delay_s(10);
- while (1)
- {
- Lcd_Clear(RED);
- delay_s(3);
- Lcd_Clear(GREEN);
- delay_s(3);
- Lcd_Clear(BLUE);
- delay_s(3);
- Lcd_Clear(YELLOW);
- delay_s(3);
- Lcd_Clear(BLACK);
- delay_s(3);
- Lcd_Clear(WHITE);
- delay_s(3);
- showimage(gImage_hua);//图片显示示例
- Gui_DrawFont_GBK16(30,155,BLACK,YELLOW,"深圳市丹杰科技");
- delay_s(100);
- }
- }
- /*******************************************************************************
- * Function Name : assert_failed
- * Description :
- *
- * Input : None
- * Output : None
- * Return : None.
- *******************************************************************************/
- #ifdef USE_FULL_ASSERT
- void assert_failed(uint8_t* file, uint32_t line)
- {
- /* User can add his own implementation to report the file name and line number,
- ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line)
- */
- /* Infinite loop */
- while (1)
- {
- }
- }
- #endif
复制代码
所有资料51hei提供下载:
丹杰2.2tft STM32F407_176220.7z
(1.83 MB, 下载次数: 12)
|