Giter Site home page Giter Site logo

legatoapp_lvgl's Introduction

Integrate LittlevGL into Legato app

This project demonstrates how to integrate LittlevlGL into a Legato app. The necessary LittlevGL dependencies are referenced by this repository as git submodules.

Setup

  1. Clone this repository with the --recursive option so that the submodules are retrieved as well.
  2. cp littlevLegatoComponent/littlevgl/lvgl/lv_conf_templ.h littlevLegatoComponent/littlevgl/lv_conf.h
  3. cp littlevLegatoComponent/littlevgl/lv_drivers/lv_drv_conf_templ.h littlevLegatoComponent/littlevgl/lv_drv_conf.h
  4. Make the following changes to littlevLegatoComponent/littlevgl/lv_conf.h:
    1. At the top of the file, change the #if 0 to #if 1 to enable the file
    2. Update logical dimension of screen for waveshare eink 2.13 Inch:
      #define LV_HOR_RES          (122)
      #define LV_VER_RES          (250)
    3. Update default font type to use monochrome font:
      #define LV_FONT_DEFAULT        &lv_font_monospace_8
    4. Enable font size 8 for monochrome display and disable unsupported font:
      #define USE_LV_FONT_DEJAVU_10              0
      #define USE_LV_FONT_DEJAVU_10_LATIN_SUP    0
      #define USE_LV_FONT_DEJAVU_10_CYRILLIC     0
      #define USE_LV_FONT_SYMBOL_10              0
      
      #define USE_LV_FONT_DEJAVU_20              0
      #define USE_LV_FONT_DEJAVU_20_LATIN_SUP    0
      #define USE_LV_FONT_DEJAVU_20_CYRILLIC     0
      #define USE_LV_FONT_SYMBOL_20              0
      
      #define USE_LV_FONT_DEJAVU_30              0
      #define USE_LV_FONT_DEJAVU_30_LATIN_SUP    0
      #define USE_LV_FONT_DEJAVU_30_CYRILLIC     0
      #define USE_LV_FONT_SYMBOL_30              0
      
      #define USE_LV_FONT_DEJAVU_40              0
      #define USE_LV_FONT_DEJAVU_40_LATIN_SUP    0
      #define USE_LV_FONT_DEJAVU_40_CYRILLIC     0
      #define USE_LV_FONT_SYMBOL_40              0
      
      #define USE_LV_FONT_MONOSPACE_8            1
    5. Update Color Depth to be 1:
      #define LV_COLOR_DEPTH     1                     /*Color depth: 1/8/16/32*/
  5. Make the following changes to littlevLegatoComponent/littlevgl/lv_drv_conf.h:
    1. At the top of the file, change the #if 0 to #if 1 to enable the file
    2. Update USE_FBDEV to 1 for using framebuffer device
      #define USE_FBDEV         1

legatoapp_lvgl's People

Contributors

nxthongbk avatar dpfrey 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.