lvgl / lv_lib_gif

GIF library for LVGL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GIF decoder for LVGL

This repository is merged into the lvgl repository. See https://docs.lvgl.io/master/libs/gif.html

Allow to use of GIF images in LVGL from.

Based on https://github.com/lecram/gifdec

Get started

  • Download or clone this repository
  • Include the library: #include "lv_lib_gif/lv_gif.h"

Use GIF images from file

lv_obj_t * img = lv_gif_create_from_file(parent, "S/path/to/example.gif");

Use GIF images from flash

If the gif file stored in the flash as a C array:

extern const uint8_t example_gif_map[];  /*Use the example gif*/
lv_obj_t * img = lv_gif_create_from_data(parent, example_gif_map);

Convert GIF files to C array

To convert a GIF file to byte values array use LVGL's online converter. Select "Raw" color format and "C array" Output format.

About

GIF library for LVGL

License:MIT License


Languages

Language:C 100.0%