找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2490|回复: 3
收起左侧

STM32F407+ILI9486驱动程序 JPEG图片解码例程

[复制链接]
ID:377864 发表于 2018-7-23 13:21 | 显示全部楼层 |阅读模式
ILI9486驱动程序。

单片机源程序如下:
  1. /****************************************Copyright (c)****************************************************
  2. **--------------File Info---------------------------------------------------------------------------------
  3. ** File name:               main.c
  4. ** Descriptions:            The JPEG application function
  5. **
  6. **--------------------------------------------------------------------------------------------------------
  7. ** Created by:              nongxiaoming
  8. ** Created date:            2011-10-30
  9. ** Version:                 v1.0
  10. ** Descriptions:            The original version
  11. **
  12. **--------------------------------------------------------------------------------------------------------
  13. ** Modified by:             shanyan
  14. ** Modified date:           2012-10-19
  15. ** Version:                 v2.0
  16. ** Descriptions:            
  17. **
  18. *********************************************************************************************************/
  19. /* ------------------------------------------包含的头文件-----------------------------------------------*/
  20. #include "stm32f4xx.h"
  21. #include "delay.h"
  22. #include "led.h"
  23. #include "usart.h"
  24. #include "lcd.h"
  25. #include "adc.h"


  26. extern unsigned  char JPGBUFF[];


  27. /*************************************************************************************
  28.   * 函数名称:main()
  29.   * 参数    :void
  30.   * 返回值  :void
  31.   * 描述    :程序主入口main函数
  32.   *************************************************************************************/
  33. int main(void)
  34. {
  35.           SystemInit();                                       //初始化系统时钟,设置时钟为168Mhz
  36.           LED_GPIO_Config();                                           //初始化LED的GPIO配置
  37.           SysTick_Init();                        //系统节拍初始化  
  38.           USART1_Conf();                         //串口1初始化
  39.           LCD_Init();                            //LCD初始化
  40.           printf("\r\n欢迎使用SY-STM32F407 V2开发板!\r\n");
  41.           printf("\r\n        山岩科技!\r\n");
  42.           printf("\r\n            -----专业,值得信赖!\r\n");
  43.           delay_nms(50);                          //延时
  44.           printf("\r\n 这是一个JPG解码例程 \r\n");

  45.           LoadJpegFile(JPGBUFF);

  46.         while(1)
  47.         {
  48.                   LED1(On);
  49.                 delay_nms(300);
  50.                 LED1(Off);
  51.                 delay_nms(300);               
  52.         }
  53. }


  54. #ifdef  USE_FULL_ASSERT

  55. /**
  56.   * @brief  Reports the name of the source file and the source line number
  57.   *   where the assert_param error has occurred.
  58.   * @param  file: pointer to the source file name
  59.   * @param  line: assert_param error line source number
  60.   * @retval None
  61.   */
  62. void assert_failed(uint8_t* file, uint32_t line)
  63. {
  64.   /* User can add his own implementation to report the file name and line number,
  65.      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */

  66.   /* Infinite loop */
  67.   while (1)
  68.   {
  69.   }
  70. }
  71. #endif

复制代码

所有资料51hei提供下载:

ILI9486TFT驱动程序STM32.rar (562.28 KB, 下载次数: 98)

评分

参与人数 1黑币 +50 收起 理由
admin + 50 共享资料的黑币奖励!

查看全部评分

回复

使用道具 举报

ID:97349 发表于 2018-10-14 23:46 | 显示全部楼层
请问图片数据是什么软件生成的
回复

使用道具 举报

ID:97349 发表于 2018-10-14 23:46 | 显示全部楼层
请问图片数据是怎么生成的
回复

使用道具 举报

ID:97349 发表于 2018-10-14 23:47 | 显示全部楼层
请问图片数据是怎么生成的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表