8000 Merge pull request #4 from amirgon/master · sci-bots/micropython@86a6fa1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86a6fa1

Browse files
authored
Merge pull request micropython#4 from amirgon/master
Update README.md, Update lv_bindings module
2 parents bc63570 + 70d4673 commit 86a6fa1

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
1+
# Micropython + lvgl
2+
3+
**For information abound Micropython lvgl bindings please refrer to [lv_bindings/README.md](https://github.com/littlevgl/lv_bindings/blob/master/README.md)**
4+
5+
## Build Instructions
6+
17
1. `sudo apt-get install build-essential libreadline-dev libffi-dev git pkg-config libsdl2-2.0-0 libsdl2-dev`
28
2. `git clone --recurse-submodules https://github.com/kisvegabor/lv_mpy.git`
39
3. `cd ./micropython/ports/unix`
410
4. `make axtls`
511
5. `make`
612
6. `./micropython`
713

14+
## Super Simple Example
815

916
Test code to craete a button and a label:
1017
```python
1118
>>> import lvgl
1219
>>> btn = lvgl.btn(lvgl.scr_act())
13-
>>> btn.align(lvgl.scr_act(), lvgl.ALIGN.
1420
>>> btn.align(lvgl.scr_act(), lvgl.ALIGN.CENTER, 0, 0)
1521
>>> label = lvgl.label(btn)
1622
>>> label.set_text("Button")
1723
```
1824

25+
## More information
26+
1927
More info about LittlevGL:
2028
- Website https://littlevgl.com
2129
- GitHub: https://github.com/amirgon/lvgl
2230

23-
Discussiona about the Microptyhon binding: https://github.com/littlevgl/lvgl/issues/557
31+
More info about lvgl Micropython bindings:
32+
- https://github.com/littlevgl/lv_bindings/blob/master/README.md
33+
34+
Discussions about the Microptyhon binding: https://github.com/littlevgl/lvgl/issues/557
2435

2536
More info about the unix port: https://github.com/micropython/micropython/wiki/Getting-Started#debian-ubuntu-mint-and-variants
2637

lib/lv_bindings

0 commit comments

Comments
 (0)
0