Update README.md
This commit is contained in:
parent
b3f0b9244e
commit
b8d11d7e06
22
README.md
22
README.md
@ -26,6 +26,28 @@ Here is the command to build ESP32 + LittlevGL which is compatible with ILI9341
|
||||
This make command will create ESP32 port of Micropython, and will try to deploy it through USB-UART bridge.
|
||||
`LV_CFLAGS` are used to override width height and color, for ILI9341 compatibility.
|
||||
|
||||
### For JavaScript port
|
||||
|
||||
You need Emscripten installed and working. There are lots of guides about that on the web, but here's the [official one](https://emscripten.org/docs/getting_started/index.html).
|
||||
|
||||
Once you have Emscripten working, you also need to install the `clang` package:
|
||||
1. `cd <path to emsdk>`
|
||||
2. `./emsdk install clang-e<sdk version>-64bit # for example: clang-e1.30.0-64bit`
|
||||
3. `./emsdk activate clang-e<sdk version>-64bit`
|
||||
|
||||
Now you can build the JavaScript port.
|
||||
|
||||
1. `cd <path to lv_micropython>`
|
||||
2. `. ./emsdk_env.sh`
|
||||
3. `git checkout lvgl_javascript`
|
||||
4. `git submodule update --init --recursive` (*can be very important!*)
|
||||
5. `cd ports/javascript`
|
||||
6. `make`
|
||||
7. Run an HTTP server that serves files from the current directory.
|
||||
8. Browse to `/lvgl_editor.html` on the HTTP Server.
|
||||
|
||||
|
||||
|
||||
## Super Simple Example
|
||||
|
||||
First, LittlevGL needs to be imported and initialized
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user