Mount machine.SDCard to existing SPI bus #12744
Replies: 3 comments 1 reply
-
@SL2021-Dev Please see Welcome (Please read before posting) for how to format code in posts.
You can do this by using the Python sdcard driver instead of |
Beta Was this translation helpful? Give feedback.
-
The author quit ! @amirgon just let me know that he can’t continue the maintenance of the the MicroPython biding due to other engagements. So I took your advice and used the sdcard.py, all three devices attach to the SPI bus !!! I believe there's some kind of collision between the sd card and the display or touch driver. links to Disp and Touch drivers
|
Beta Was this translation helpful? Give feedback.
-
So digging even deeper I found out that if I comment out the touch driver that listing the directories work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use machine.SDCard with lv_micropython ili9XXX.py and xpt2046.py drivers
If I mount the SDCard first and do a print(os.listdir('/sd/data')) so far so good
then initialize the ili9341 then run the print(os.listdir('/sd/data')) again...
I get an... E (38150) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
Why does the SDCard fail??
Example 1
output...
/sd/data: ['test.txt']
Single buffer
ILI9341 initialization completed
Enable backlight
♦♦>
MicroPython v1.20.0-702-g1ed8b7c0d-dirty on 2023-10-18; ESP32 module (spiram) with ESP32
Type "help()" for more information.
What I want to to do is reverse the order of conecting devices to the SPI bus but I need a method to attach
machine.SDCard to an existing SPI bus
Example 2
output...
Single buffer
ILI9341 initialization completed
Enable backlight
♦Traceback (most recent call last):
File "", line 49, in
OSError: (-259, 'ESP_ERR_INVALID_STATE')
♦>
MicroPython v1.20.0-702-g1ed8b7c0d-dirty on 2023-10-18; ESP32 module (spiram) with ESP32
Type "help()" for more information.
Is there a method ????
Or will I get the same output.
Beta Was this translation helpful? Give feedback.
All reactions