标题:
STM32F407+ILI9486驱动程序 JPEG图片解码例程
[打印本页]
作者:
15022371092
时间:
2018-7-23 13:21
标题:
STM32F407+ILI9486驱动程序 JPEG图片解码例程
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 上传
点击文件名下载附件
下载积分: 黑币 -5
作者:
inaosan
时间:
2018-10-14 23:46
请问图片数据是什么软件生成的
作者:
inaosan
时间:
2018-10-14 23:46
请问图片数据是怎么生成的
作者:
inaosan
时间:
2018-10-14 23:47
请问图片数据是怎么生成的
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1