How to mount sdcard on S3 Lolin Pro via Micropython
Posted: Fri Dec 16, 2022 10:30 am
Hello
Any pointers to getting sdcard working on a Lolin S3 Pro?
I have tried
import os
from machine import Pin
from machine import SDCard
sd = SDCard(slot=2, sck=Pin(12), mosi=Pin(11), miso=Pin(13), cs=Pin(46))
os.mount(sd, "/sd")
but am getting
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
OSError: (-258, 'ESP_ERR_INVALID_ARG')
Any pointers to getting sdcard working on a Lolin S3 Pro?
I have tried
import os
from machine import Pin
from machine import SDCard
sd = SDCard(slot=2, sck=Pin(12), mosi=Pin(11), miso=Pin(13), cs=Pin(46))
os.mount(sd, "/sd")
but am getting
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
OSError: (-258, 'ESP_ERR_INVALID_ARG')