找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3179|回復(fù): 3
收起左側(cè)

STM32F407+ILI9486驅(qū)動程序 JPEG圖片解碼例程

[復(fù)制鏈接]
ID:377864 發(fā)表于 2018-7-23 13:21 | 顯示全部樓層 |閱讀模式
ILI9486驅(qū)動程序。

單片機源程序如下:
  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.   * 函數(shù)名稱:main()
  29.   * 參數(shù)    :void
  30.   * 返回值  :void
  31.   * 描述    :程序主入口main函數(shù)
  32.   *************************************************************************************/
  33. int main(void)
  34. {
  35.           SystemInit();                                       //初始化系統(tǒng)時鐘,設(shè)置時鐘為168Mhz
  36.           LED_GPIO_Config();                                           //初始化LED的GPIO配置
  37.           SysTick_Init();                        //系統(tǒng)節(jié)拍初始化  
  38.           USART1_Conf();                         //串口1初始化
  39.           LCD_Init();                            //LCD初始化
  40.           printf("\r\n歡迎使用SY-STM32F407 V2開發(fā)板!\r\n");
  41.           printf("\r\n        山巖科技!\r\n");
  42.           printf("\r\n            -----專業(yè),值得信賴!\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

復(fù)制代碼

所有資料51hei提供下載:

ILI9486TFT驅(qū)動程序STM32.rar (562.28 KB, 下載次數(shù): 98)


評分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎勵!

查看全部評分

回復(fù)

使用道具 舉報

ID:97349 發(fā)表于 2018-10-14 23:46 | 顯示全部樓層
請問圖片數(shù)據(jù)是什么軟件生成的
回復(fù)

使用道具 舉報

ID:97349 發(fā)表于 2018-10-14 23:46 | 顯示全部樓層
請問圖片數(shù)據(jù)是怎么生成的
回復(fù)

使用道具 舉報

ID:97349 發(fā)表于 2018-10-14 23:47 | 顯示全部樓層
請問圖片數(shù)據(jù)是怎么生成的
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復(fù) 返回頂部 返回列表