0
点赞
收藏
分享

微信扫一扫

LVGL学习笔记(2)——搭建环境、模拟仿真(Windows+CodeBlocks)

念川LNSC 2022-02-09 阅读 114

一、LVGL简介

  • LVGL官网:https://lvgl.io
  • 官方文档:https://docs.lvgl.io/master/intro/index.html
  • Github仓库:https://github.com/lvgl/lvgl
  • 国内码云仓库:https://gitee.com/mirrors/lvgl
  • 正点原子教程:http://www.openedv.com/docs/book-videos/zdyzshipin/4free/littleVGL.html

二、搭建环境

2.1 安装CodeBlocks

官网下载:https://www.codeblocks.org/downloads/binaries/

  • 选择带编译器的版本:codeblocks-20.03mingw-setup.exe
  • 安装完成

2.2 下载LVGL的CodeBlocks模拟器源码

Github仓库:https://github.com/lvgl/lv_sim_codeblocks_win

点开 lv_sim_codeblocks_win-master 文件夹,lv_demoslvgl_driverslvgl 文件夹是空的,所以还要下载相关的库,并解压到这三个文件夹中。

  • lv_demos库下载:https://github.com/lvgl/lv_demos/tree/f727ede0dda5d209bdeb0e94361987482b869054 并解压到上图lv_demos文件夹中

  • lvgl_drivers库下载:https://github.com/lvgl/lv_drivers/tree/aa0ae1a9451c2522b06463128bca32e7dee3a8e5 并解压到lvgl_drives文件夹中

  • lvgl库下载:https://github.com/lvgl/lvgl/tree/b20a706112a3107db13bbd405991ece4cbe00a88 并解压到lvgl文件夹中

三、模拟仿真

  • 打开 LittlevGL.cbp 文件

  • 编译运行(Ctrl+F5)

  • 编译错误,重新选择工具链

    Settings ——> Compiler... ——> Toolchain executables 选择CodeBlocks安装路径下的MinGW,重新构建,编译

  • 查看效果:


• 由 Leung 写于 2022 年 2 月 9 日

• 参考:codeblocks运行lvgl8

举报

相关推荐

0 条评论