Coder Social home page Coder Social logo

aenchevich / lv_examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lvgl/lv_demos

0.0 2.0 0.0 16.77 MB

Examples, tutorials and applications for the LittlevGL embedded GUI library

Home Page: https://littlevgl.com

C 99.86% Makefile 0.01% Python 0.13% Objective-C 0.01%

lv_examples's Introduction

Examples for LVGL

Here you can find examples and demos for LVGL embedded GUI library.

Add the examples to your projects

  1. Clone this repository: git clone https://github.com/lvgl/lv_examples.git.
  2. The lv_examples directory should be next to the lvgl directory in your project.

Similarly to lv_conf.h there is a configuration file for the examples too. It is called lv_ex_conf.h.

  1. Copy lv_examples/lv_ex_conf_templ.h next to lv_examples directory
  2. Rename is to lv_ex_conf.h
  3. Change the first #if 0 to #if 1 to enable the file's content
  4. Enable or Disable modules

Examples

Get strated

If you are new to LVGL check these examples first. They demonstrate the basic mechanisms of the library. See the lv_ex_get_started folder. You can also take a look at the Quich overview of LVGL to learn the basics.

Styles

LVGL has a powerful and versatile style system. These examples show how to use the most common style properties, e.g. styling rectangles, shadows, images, lines, transitions and so on. See the lv_ex_style folder. Be sure to read the Documentation of the styles to fully understand them.

Widgets

LVGL has more than 35 widgets and you can find examples for all of them. Go to the lv_ex_widgets folder to see them. The documentation of the widgets can be found here.

Demos

Widgets

Shows how the widgets look like out of the box using the built-in material theme.   See in lv_demo_widgets folder.

Basic demo to show the widgets of LVGL

Printer

A printer example created with LVGL. This demo is optimized for 800x480 resolution and among many others, it demonstrates custom theme creation, style transitions, and animations. See in lv_demo_printer folder. Printer demo with LVGL embedded GUI library

Keypad and encoder

LVGL allows you to control the widgets with a keypad and/or encoder without a touchpad. This demo shows how to handle buttons, drop-down lists, rollers, sliders, switches, and text inputs without touchpad. Learn more about the touchpad-less usage of LVGL here.

See in lv_demo_keypad_encoder folder.

Keypad and encoder navigation in LVGL embedded GUI library

Benchmark

A demo to measure the performance of LVGL or to compare different settings. See in lv_demo_benchmark folder. Benchmark demo with LVGL embedded GUI library

Stress

A stress test for LVGL. It contains a lot of object creation, deletion, animations, style usage, and so on. It can be used if there is any memory corruption during heavy usage or any memory leaks. See in lv_demo_stress folder. Stress tes tfor LVGL

Contributing

For contribution and coding style guidelines, please refer to the file docs/CONTRIBUTNG.md in the main LVGL repo:   https://github.com/lvgl/lvgl

lv_examples's People

Contributors

kisvegabor avatar embeddedt avatar seyyah avatar deonmarais64 avatar stepansnigirev avatar ali-rostami avatar mortflem avatar zaltora avatar brianpugh avatar c47d avatar dltn avatar diegoherranz avatar jmbrederveld avatar poelstra avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.