All Projects → lvgl → lv_sim_emscripten

lvgl / lv_sim_emscripten

Licence: MIT license
LVGL ported to Emscripten to be converted to JavaScript

Programming Languages

c
50402 projects - #5 most used programming language
HTML
75241 projects
CMake
9771 projects
shell
77523 projects

Projects that are alternatives of or similar to lv sim emscripten

simulator
Desktop simulator for embedded-graphics
Stars: ✭ 52 (+30%)
Mutual labels:  simulator
interstellar-armada
A Javascript-WebGL 3D space combat game under development.
Stars: ✭ 33 (-17.5%)
Mutual labels:  simulator
pyEnigma
Python Enigma cypher machine simulator.
Stars: ✭ 44 (+10%)
Mutual labels:  simulator
gym-mtsim
A general-purpose, flexible, and easy-to-use simulator alongside an OpenAI Gym trading environment for MetaTrader 5 trading platform (Approved by OpenAI Gym)
Stars: ✭ 196 (+390%)
Mutual labels:  simulator
ARMStrong
A fast and simple ARM Simulator made for education based upon Unicorn and Keystone engines
Stars: ✭ 99 (+147.5%)
Mutual labels:  simulator
CoinBrowser
Coinbrowser is a pair selection tool for Freqtrade and a simple crypto trading-simulator
Stars: ✭ 25 (-37.5%)
Mutual labels:  simulator
MouseClickSimulator
Mouse Click Simulator for Toontown Rewritten and Corporate Clash
Stars: ✭ 20 (-50%)
Mutual labels:  simulator
EUC-Dash-ESP32
Bluetooth Dashboard for electric unicycles (EUCs) for ESP32(ttgo t-watch). requires PlatformIO to build
Stars: ✭ 24 (-40%)
Mutual labels:  lvgl
Hack-System
[HackSystem/Hack System] 有趣而炫酷的模拟操作系统。An interesting and cool simulation operating system.
Stars: ✭ 35 (-12.5%)
Mutual labels:  simulator
V2releases
A friendly ARM assembler and simulator for educational use
Stars: ✭ 46 (+15%)
Mutual labels:  simulator
sim8085
Online 8085 simulator
Stars: ✭ 83 (+107.5%)
Mutual labels:  simulator
coupled-sim
Coupled simulator for research on driver-pedestrian interactions made in Unity3D.
Stars: ✭ 20 (-50%)
Mutual labels:  simulator
Interlin-q
A Quantum Interconnect Simulator for Distributed Quantum Algorithms
Stars: ✭ 32 (-20%)
Mutual labels:  simulator
MK404
A functional Simulator for Prusa (Mini/Einsy) Rambo based printers
Stars: ✭ 52 (+30%)
Mutual labels:  simulator
brainbox
Teaching-focused digital circuit simulator. Allows anyone to graphically connect objects within a awesome web-browser application without knowing coding or hacking.
Stars: ✭ 100 (+150%)
Mutual labels:  simulator
VAOS
Virtual Aviation Operations System
Stars: ✭ 44 (+10%)
Mutual labels:  simulator
modular-psu-firmware
Firmware for EEZ Bench Box 3 (BB3)
Stars: ✭ 74 (+85%)
Mutual labels:  simulator
sst-core
SST Structural Simulation Toolkit Parallel Discrete Event Core and Services
Stars: ✭ 82 (+105%)
Mutual labels:  simulator
appfiguratesdk
Appfigurate provides the ability to change configuration properties in iOS and watchOS, apps and app extensions, securely, at runtime.
Stars: ✭ 21 (-47.5%)
Mutual labels:  simulator
duel-masters
Browser based Duel Masters simulator.
Stars: ✭ 28 (-30%)
Mutual labels:  simulator

Emscripten port

LVGL ported to Emscripten to be converted to JavaScript

The result looks like this https://lvgl.io/demos

How to get started

Install SDL

Downlad SDL (a graphics library to ope na window and handle the mouse). On Linux:

  1. Find the current version of SDL2: apt-cache search libsdl2 (e.g. libsdl2-2.0-0)
  2. Install SDL2: sudo apt-get install libsdl2-2.0-0 (replace with the found version)
  3. Install SDL2 development package: sudo apt-get install libsdl2-dev
  4. If build essentials are not installed yet: sudo apt-get install build-essential

Install Emscripten SDK

Download the Emscripten SDK and make sure it is in your PATH.

  1. git clone https://github.com/emscripten-core/emsdk.git
  2. cd <path-to-emsdk>
  3. git pull
  4. ./emsdk install latest
  5. ./emsdk activate latest
  6. source ./emsdk_env.sh

More info here: https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html

Get the Emscripten-LVGL project

  1. Be sure you ran . <path-to-emsdk>/emsdk_env.sh to add EMSDK to PATH
  2. In any directoy: git clone --recursive https://github.com/lvgl/lv_web_emscripten.git
  3. cd <path-to-emscripten>
  4. mkdir cmbuild
  5. cd cmbuild
  6. emcmake cmake ..
  7. emmake make -j4
  8. A file called index.html will be generated. Run this in your browser.

Build options (environment variables)

  • LVGL_CHOSEN_DEMO can be set to the desired demo name so that you don't need to change any C files. This is useful to compile many demos in bulk using a script.

Example emcmake cmake .. -DLVGL_CHOSEN_DEMO=lv_demo_widgets

Known issue with Google Chrome browser

Chrome can't open the generated html file offline. It works if you copy the files to a server. Use Firefox or other browser for offline testing.

Known issue with Firefox

Firefox can't open the generated html file offline unless you go to about:config and change privacy.file_unique_origin to false.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].