1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(examples) import 'u'-prefixed versions of modules (#2365)

import usys and utime instead of sys and time, as the latter are not available on all platforms
This commit is contained in:
Amir Gonnen 2021-07-11 02:24:16 +03:00 committed by GitHub
parent 0ae15bd470
commit 1b6a39ca61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 10 additions and 13 deletions

View File

@ -1,10 +1,7 @@
#!/opt/bin/lv_micropython -i
import lvgl as lv
try:
import sys
except ImportError:
import usys as sys
import usys as sys
# JS requires a special import
if sys.platform == 'javascript':

View File

@ -1,5 +1,5 @@
#!/opt/bin/lv_micropython -i
import time
import utime as time
import lvgl as lv
import display_driver

View File

@ -1,5 +1,5 @@
#!/opt/bin/lv_micropython -i
import sys
import usys as sys
import lvgl as lv
import display_driver
from imagetools import get_png_info, open_png

View File

@ -1,5 +1,5 @@
#!/opt/bin/lv_micropython -i
import sys
import usys as sys
import lvgl as lv
import display_driver
from imagetools import get_png_info, open_png

View File

@ -1,5 +1,5 @@
#!/opt/bin/lv_micropython -i
import sys
import usys as sys
import lvgl as lv
import display_driver
from imagetools import get_png_info, open_png

View File

@ -1,5 +1,5 @@
#!//opt/bin/lv_micropython -i
import time
import utime as time
import lvgl as lv
import display_driver

View File

@ -1,5 +1,5 @@
#!//opt/bin/lv_micropython -i
import time
import utime as time
import lvgl as lv
import display_driver

View File

@ -1,5 +1,5 @@
#!//opt/bin/lv_micropython -i
import time
import utime as time
import lvgl as lv
import display_driver
from imagetools import get_png_info, open_png

View File

@ -1,8 +1,8 @@
#!/opt/bin/lv_micropython -i
import time
import utime as time
import lvgl as lv
import display_driver
import sys
import usys as sys
class Lv_Roller_3():