標(biāo)題:
STM32F407+ILI9486驅(qū)動(dòng)程序 JPEG圖片解碼例程
[打印本頁]
作者:
15022371092
時(shí)間:
2018-7-23 13:21
標(biāo)題:
STM32F407+ILI9486驅(qū)動(dòng)程序 JPEG圖片解碼例程
ILI9486驅(qū)動(dòng)程序。
單片機(jī)源程序如下:
/****************************************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[];
/*************************************************************************************
* 函數(shù)名稱:main()
* 參數(shù) :void
* 返回值 :void
* 描述 :程序主入口main函數(shù)
*************************************************************************************/
int main(void)
{
SystemInit(); //初始化系統(tǒng)時(shí)鐘,設(shè)置時(shí)鐘為168Mhz
LED_GPIO_Config(); //初始化LED的GPIO配置
SysTick_Init(); //系統(tǒng)節(jié)拍初始化
USART1_Conf(); //串口1初始化
LCD_Init(); //LCD初始化
printf("\r\n歡迎使用SY-STM32F407 V2開發(fā)板!\r\n");
printf("\r\n 山巖科技!\r\n");
printf("\r\n -----專業(yè),值得信賴!\r\n");
delay_nms(50); //延時(shí)
printf("\r\n 這是一個(gè)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
復(fù)制代碼
所有資料51hei提供下載:
ILI9486TFT驅(qū)動(dòng)程序STM32.rar
(562.28 KB, 下載次數(shù): 98)
2018-7-24 00:13 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
作者:
inaosan
時(shí)間:
2018-10-14 23:46
請(qǐng)問圖片數(shù)據(jù)是什么軟件生成的
作者:
inaosan
時(shí)間:
2018-10-14 23:46
請(qǐng)問圖片數(shù)據(jù)是怎么生成的
作者:
inaosan
時(shí)間:
2018-10-14 23:47
請(qǐng)問圖片數(shù)據(jù)是怎么生成的
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1