ILI9486驅動程序。
單片機源程序如下:
- /****************************************Copyright (c)****************************************************
- **--------------File Info---------------------------------------------------------------------------------
- ** File name: main.c
- ** Descriptions: The JPEG application function
- **
- **--------------------------------------------------------------------------------------------------------
- ** Created by: nongxiaoming
- ** Created date: 2011-10-30
- ** Version: v1.0
- ** Descriptions: The original version
- **
- **--------------------------------------------------------------------------------------------------------
- ** Modified by: shanyan
- ** Modified date: 2012-10-19
- ** Version: v2.0
- ** Descriptions:
- **
- *********************************************************************************************************/
- /* ------------------------------------------包含的頭文件-----------------------------------------------*/
- #include "stm32f4xx.h"
- #include "delay.h"
- #include "led.h"
- #include "usart.h"
- #include "lcd.h"
- #include "adc.h"
- extern unsigned char JPGBUFF[];
- /*************************************************************************************
- * 函數名稱:main()
- * 參數 :void
- * 返回值 :void
- * 描述 :程序主入口main函數
- *************************************************************************************/
- int main(void)
- {
- SystemInit(); //初始化系統時鐘,設置時鐘為168Mhz
- LED_GPIO_Config(); //初始化LED的GPIO配置
- SysTick_Init(); //系統節拍初始化
- USART1_Conf(); //串口1初始化
- LCD_Init(); //LCD初始化
- printf("\r\n歡迎使用SY-STM32F407 V2開發板!\r\n");
- printf("\r\n 山巖科技!\r\n");
- printf("\r\n -----專業,值得信賴!\r\n");
- delay_nms(50); //延時
- printf("\r\n 這是一個JPG解碼例程 \r\n");
- LoadJpegFile(JPGBUFF);
- while(1)
- {
- LED1(On);
- delay_nms(300);
- LED1(Off);
- delay_nms(300);
- }
- }
- #ifdef USE_FULL_ASSERT
- /**
- * @brief Reports the name of the source file and the source line number
- * where the assert_param error has occurred.
- * @param file: pointer to the source file name
- * @param line: assert_param error line source number
- * @retval None
- */
- 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提供下載:
ILI9486TFT驅動程序STM32.rar
(562.28 KB, 下載次數: 98)
2018-7-24 00:13 上傳
點擊文件名下載附件
|