docs(examples) add MicroPython examples

This commit is contained in:
Themba Dube
2021-06-11 16:45:03 -04:00
parent 1a62f7a619
commit 6f37c4fc56
40 changed files with 63 additions and 248 deletions

View File

@@ -1,3 +1,14 @@
#!/opt/bin/lv_micropython -i
import lvgl as lv
try:
import sys
except ImportError:
import usys as sys
# JS requires a special import
if sys.platform == 'javascript':
import imp
sys.path.append('https://raw.githubusercontent.com/lvgl/lv_binding_micropython/4c04dba836a5affcf86cef107b538e45278117ae/lib')
import display_driver