Update - sorting qstr and using binary search improve things significantly!
I've created a PR: https://github.com/micropython/micropython/pull/6896
Search found 20 matches
- Sat Feb 13, 2021 10:56 pm
- Forum: General Discussion and Questions
- Topic: Compiled modules load time
- Replies: 8
- Views: 266
- Tue Feb 09, 2021 10:39 pm
- Forum: General Discussion and Questions
- Topic: Compiled modules load time
- Replies: 8
- Views: 266
Re: Compiled modules load time
Time to connect JTAG! Random breaks while importing mpy modules always end up at qstr_find_strn (gdb) bt #0 0x400d3734 in qstr_find_strn (str=0x3f819960 "set_value", str_len=9) at ../../py/qstr.c:181 #1 0x400d377f in qstr_from_strn (str=0x3f819960 "set_value", len=9) at ../../py/qstr.c:197 #2 0x400d...
- Mon Feb 08, 2021 10:55 pm
- Forum: General Discussion and Questions
- Topic: Compiled modules load time
- Replies: 8
- Views: 266
Re: Compiled modules load time
Your compiled modules must be very large if loading from the file system takes several seconds. Are you sure that there is not still the .py version of the module in the files system. That will take preference. No, there is something else going on here. There are 13 .mpy files, total of 50KB. Not l...
- Sun Feb 07, 2021 11:23 pm
- Forum: General Discussion and Questions
- Topic: Compiled modules load time
- Replies: 8
- Views: 266
Compiled modules load time
Hi, I'm compiling modules for ESP32 with: mpy-cross -march=xtensawin The compiled mpy modules are imported, loaded and start running after boot. I expected these modules to be loaded very fast when imported since they are already compiled. However, it takes several seconds after boot until the modul...
- Wed Jan 15, 2020 11:56 am
- Forum: Hardware Projects
- Topic: XPT2046 3.5" LCD
- Replies: 1
- Views: 1188
Re: XPT2046 3.5" LCD
Not sure if that's what you need, but here's an ESP32 XPT2046 micropython driver for lvgl:
https://github.com/littlevgl/lv_binding ... xpt2046.py
https://github.com/littlevgl/lv_binding ... xpt2046.py
- Mon Jan 13, 2020 9:59 am
- Forum: Drivers for External Components
- Topic: LittlevGL support
- Replies: 3
- Views: 2064
Re: LittlevGL support
I was just wondering, if anyone ever though or did some work of porting https://github.com/littlevgl/lvgl to Micropython? There is a port of Micropython to LittleVGL (which is the other way https://blog.littlevgl.com/2019-02-20/micropython-bindings or https://github.com/littlevgl/lvgl/issues/557 ) ...
- Mon Jan 13, 2020 9:49 am
- Forum: Development of MicroPython
- Topic: Micropython Build Environment for ESP32 in a Docker Container
- Replies: 11
- Views: 4812
Re: Micropython Build Environment for ESP32 in a Docker Container
Having pre-built binaries gives new developers the opportunity to get right to coding, testing, and evaluating LittlevGL without all the "building" hassles. We don't provide pre-built binaries. But for testing and evaluating Micropython + LittlevGL you can use the online simulator: https://sim.litt...
- Sat Aug 31, 2019 6:49 pm
- Forum: Development of MicroPython
- Topic: SWIG (or similar wrapping tool) support?
- Replies: 15
- Views: 8281
- Thu Mar 14, 2019 10:12 pm
- Forum: ESP32 boards
- Topic: High level GUI lib/framework
- Replies: 32
- Views: 13212
Re: High level GUI lib/framework
I just saw that it only supports resistive, it would be nice if if also had a generic touch driver, where from python you could just update a method .display_touched(x,y) for example. And the library would handle it. This way the implementation of the touch driver could be totally outside LittlevGL...
- Tue Mar 12, 2019 10:28 pm
- Forum: ESP32 boards
- Topic: High level GUI lib/framework
- Replies: 32
- Views: 13212
Re: High level GUI lib/framework
Which particular ILI9341 driver does this use? I've just started looking at this and want to test, but it's not immediately obvious to me. I've done a little more reading and figured it out. The driver is included with the binding: https://github.com/littlevgl/lv_binding_micropython/tree/master/dri...