Update README.md with link to lv_bindings README.md where lots of info was added. Update lv_bindings module

This commit is contained in:
Amir Gonnen 2019-01-25 23:25:22 +02:00
parent bc635700e4
commit 70d4673471
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
# Micropython + lvgl
**For information abound Micropython lvgl bindings please refrer to [lv_bindings/README.md](https://github.com/littlevgl/lv_bindings/blob/master/README.md)**
## Build Instructions
1. `sudo apt-get install build-essential libreadline-dev libffi-dev git pkg-config libsdl2-2.0-0 libsdl2-dev` 1. `sudo apt-get install build-essential libreadline-dev libffi-dev git pkg-config libsdl2-2.0-0 libsdl2-dev`
2. `git clone --recurse-submodules https://github.com/kisvegabor/lv_mpy.git` 2. `git clone --recurse-submodules https://github.com/kisvegabor/lv_mpy.git`
3. `cd ./micropython/ports/unix` 3. `cd ./micropython/ports/unix`
@ -5,22 +11,27 @@
5. `make` 5. `make`
6. `./micropython` 6. `./micropython`
## Super Simple Example
Test code to craete a button and a label: Test code to craete a button and a label:
```python ```python
>>> import lvgl >>> import lvgl
>>> btn = lvgl.btn(lvgl.scr_act()) >>> btn = lvgl.btn(lvgl.scr_act())
>>> btn.align(lvgl.scr_act(), lvgl.ALIGN.
>>> btn.align(lvgl.scr_act(), lvgl.ALIGN.CENTER, 0, 0) >>> btn.align(lvgl.scr_act(), lvgl.ALIGN.CENTER, 0, 0)
>>> label = lvgl.label(btn) >>> label = lvgl.label(btn)
>>> label.set_text("Button") >>> label.set_text("Button")
``` ```
## More information
More info about LittlevGL: More info about LittlevGL:
- Website https://littlevgl.com - Website https://littlevgl.com
- GitHub: https://github.com/amirgon/lvgl - GitHub: https://github.com/amirgon/lvgl
Discussiona about the Microptyhon binding: https://github.com/littlevgl/lvgl/issues/557 More info about lvgl Micropython bindings:
- https://github.com/littlevgl/lv_bindings/blob/master/README.md
Discussions about the Microptyhon binding: https://github.com/littlevgl/lvgl/issues/557
More info about the unix port: https://github.com/micropython/micropython/wiki/Getting-Started#debian-ubuntu-mint-and-variants More info about the unix port: https://github.com/micropython/micropython/wiki/Getting-Started#debian-ubuntu-mint-and-variants

@ -1 +1 @@
Subproject commit 575ec2f5c3e2d487ab0c879c426100de7c2bf5e4 Subproject commit cff4147a992422207720bd8cb02e78f34070a228