[STM32F7] STM32F769I-DISCO评测(8)显示JPG图像

[复制链接]
941|0
 楼主| ddllxxrr 发表于 2017-1-4 22:06 | 显示全部楼层 |阅读模式
STM32F7 的CUBE中有显示JPG图像的例程,那么拿来显示下图像看看能否成功。
开发板上边是800*480的图像分辨率。所以我用2345看图王把平时打坦克世界的截图给截成800*400的JPG格式文件。

然后根据例程的要求:
我的库是装在:E:\360Downloads\STM32Cube_FW_F7_V1.5.0\Projects\STM32F769I-Discovery\Examples\JPEG

  1. - This example runs on STM32F769xx/STM32F779xx.
  2.    
  3.   - This example has been tested with STMicroelectronics STM32F769I_Discovery
  4.     boards and can be easily tailored to any other supported device
  5.     and development board.
  6.    
  7.   - STM32F769I_Discovery Set-up
  8.   - Copy a jpg image to a uSD card (under the root)
  9.       The image must have the following properties:
  10.         - named as "image.jpg"
  11.         - dimensions : less or equal to the LCD-DSI screen (i.e 800x480 for the STM32F769I_Discovery board)
  12.         - Witdh  : <= 800
  13.         - Height : <= 480     
  14.   - Connect the uSD Card to the uSD connector (CN5).


可见是命名为image.jpg考到SD卡的根目录下边。

放好SD卡后下载编译好的程序,加电一瞬间先是黑屏然后突然就亮了。我想这是先关显示,等DMA2准备好了就刷屏。速度很快毫秒级。

以下是显示的图片,其实它不是800*480的但我用2345看图王改变尺寸变成了800*480的。

shot_012.jpg


以下是效果图:
IMG_0707[1].JPG


还有一个例程在E:\360Downloads\STM32Cube_FW_F7_V1.5.0\Projects\STM32F769I-Discovery\Applications\Display

这个是连续显示图片的。

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

本版积分规则

个人签名:http://shop34182318.taobao.com/ http://shop562064536.taobao.com

2404

主题

7002

帖子

68

粉丝
快速回复 在线客服 返回列表 返回顶部