LVGL介绍

官网 :https://lvgl.io/
官方在线文档:https://docs.lvgl.io/latest/en/html/intro/index.html
littleVGL是一个开源的嵌入式图形控件库,MIT协议, 图形美观,硬件无关,移植方便,可移植性强,占用资源少。

硬件要求:

  1. 16, 32 or 64 bit microcontroller or processor
  2. 16 MHz clock speed is recommended
  3. Flash/ROM: > 64 kB for the very essential components (> 180 kB is recommended)
  4. One frame buffer in the MCU or in external display controller
  5. C99 or newer compiler
  6. Basic C (or C++) knowledge: pointers, structs, callbacks
  7. RAM:
    Static RAM usage: ~2 kB depending on the used features and objects types
    Stack: > 2kB (> 8 kB is recommended)
    Dynamic data (heap): > 2 KB (> 16 kB is recommended if using several objects). Set by LV_MEM_SIZE in lv_conf.h.
    Display buffer: > “Horizontal resolution” pixels (> 10 × “Horizontal resolution” is recommended)

最重要的的是:它支持PC模拟,只用PC就可以直接运行你的界面,这就极大的方便了图形界面相关的的调试。

移植说明

常见的IDE都支持
LVGL——PC模拟器仿真模拟+VS2017
本文以VS为例

资源下载

这里包括以下四个:

  1. 模拟器 :https://github.com/lvgl/lv_sim_visual_studio_sdl
  2. LVGL库:https://github.com/lvgl/lvgl
  3. LVGL 演示demo:https://github.com/lvgl/lv_examples
  4. LVGL 驱动驱动:https://github.com/lvgl/lv_drivers

环境搭建编译运行

模拟器下载来目录如下, lv_drivers,lvgl,lv_examples都是空文件夹,将上面下载的另外三个资源分别放入对应的这三个文件,注意目录层级。
LVGL——PC模拟器仿真模拟+VS2017

这个模拟器是vs2017的,如果是高版本的vs可能会报错,只要重新生成目标解决方案即可LVGL——PC模拟器仿真模拟+VS2017

这样没意外就可以直接运行各种例程了
LVGL——PC模拟器仿真模拟+VS2017
LVGL——PC模拟器仿真模拟+VS2017
LVGL——PC模拟器仿真模拟+VS2017

相关文章:

  • 2021-12-17
  • 2021-10-31
  • 2021-08-02
  • 2021-07-21
  • 2021-08-02
  • 2021-11-19
  • 2021-04-01
  • 2021-04-29
猜你喜欢
  • 2021-06-12
  • 2021-12-18
  • 2022-12-23
  • 2021-11-16
  • 2021-05-17
  • 2021-10-08
  • 2021-07-09
相关资源
相似解决方案