Skip to content

lvgl/lv_binding_js

Repository files navigation

lvgljs

Write LVGL with JavaScript. It uses React's virtual DOM concept to manipulate LVGL UI components, providing a familiar experience to users.

Code

Running on a real device

Table of Contents

Features

  • Support all lvgl built-in components
  • Fully suport lvgl flex and grid style
  • Support most lvgl style,just write like html5 css
  • Support dynamic load image
  • Fully support lvgl animation

Demo

Widgets

sdl_simulator

Calculator

sdl_simulator

Building

The following are developer notes on how to build lvgljs.
It is recommended that you first work with the simulator and only then try to compile for a target device.

lvgljs

JS Bundle

Components

Font

Buitin-Symbol

Animation

Animation

Style

JSAPI

Thanks

lvgljs depends on following excellent work:

  • lvgl: Create beautiful UIs for any MCU, MPU and display type
  • txiki.js: Tiny JavaScript runtime
    • QuickJS: JavaScript engine
    • libuv: platform abstraction layer
    • curl: HTTP client