Search found 29 matches

by PM-TPI
Thu May 21, 2020 7:14 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

- SEE... but that commit is not included yet in Micropython (at least not on the last release v1.12, which lv_micropython is aligned to). is this true? from https://github.com/lvgl/lv_binding_micropython/issues/69 Did you see this issue: https://github.com/espressif/esp-idf/issues/1597 ? Due to the ...
by PM-TPI
Thu May 21, 2020 3:39 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

I re-built with original lvgl..
and color problem is in modILI9341.c driver but not in Pure/Hybrid ili9341.py driver...

so its not your code Mike.
How current is you build?
by PM-TPI
Thu May 21, 2020 2:47 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

yea there all set correctly. I'd like to compare build info... I used IDF v4.0 with git checkout 463a9d8b7f9af8205222b80707f9bdbba7c530e1 boot shows... MicroPython v1.12-277-g6b32fae73-dirty on 2020-05-21; ESP32 module (spiram) with ESP32 My dev board is a wemos Lolin D32 Pro v2 (esp32 WROVER-B 16mb...
by PM-TPI
Wed May 20, 2020 9:27 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

still bad colors...
by PM-TPI
Wed May 20, 2020 5:03 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

I faced the same problem and found a workaround by modifying the C based ILI9341 display driver, I build with your modILI9341.c file. SDcard and LVGL work, but button colors are rainbow striped. import machine import uos import lvgl as lv import lvesp32 uos.mount(machine.SDCard(slot=3, sck=18, mosi...
by PM-TPI
Sun May 17, 2020 3:03 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

fstengel wrote:
Sat May 16, 2020 11:59 am
I have used @Mike Teachman's solution (and the derived code I found in that repo https://github.com/sci-bots/lv_binding_ ... fed5fac8a2). It works.
Please elaborate on what, files were used and edits made.
by PM-TPI
Sat May 16, 2020 7:41 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

I have used @Mike Teachman's solution (and the derived code I found in that repo https://github.com/sci-bots/lv_binding_ ... fed5fac8a2). It works. What did I get wrong.... got test(ili9341.py-shared-SPI)... changed ili9341.py settings for LOLIN D2 Pro def __init__(self, miso=19, mosi=23, clk=18, c...
by PM-TPI
Sat May 16, 2020 11:57 am
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

Peter... yes using sdcard.py, your theory of the issues are exactly what I'm feeling is going on here. Mike... I'm using the micropython version. What is the philosophy of the changes in your C code that I can possibly apply to the uPy code? Was your approach similar to Peters? In trying to fix this...
by PM-TPI
Fri May 15, 2020 8:43 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

If I initialized LVGL first... and then mount sd card... try: sd = sdcard.SDCard(machine.SPI(1, sck=machine.Pin(18), mosi=machine.Pin(23), miso=machine.Pin(19)), machine.Pin(4)) uos.mount(sd, '/sd') print(uos.listdir('/sd/data')) except: print('\nSD Card Error\n') >>> ILI9341 initialization complete...
by PM-TPI
Fri May 15, 2020 6:59 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1577

Re: LVGL and SD Card won't share SPI bus

got to mount... spi = SPI(2, sck=Pin(18), mosi=Pin(23), miso=Pin(19) ) try: # uos.mount(SDCard(slot=2, sck=18, miso=19, mosi=23, cs=4), '/sd') sd = sdcard.SDCard(spi, Pin(4)) uos.mount(sd, '/sd') print(uos.listdir('/sd/data')) except: print('\nSD Card Error\n') but when lvgl initialized... not able ...