Hacker News new | ask | show | jobs
by timonoko 1280 days ago
"All I want for Christmas is SD-card reader on my ESP32."

- Finds micropython library. Ok.

- Finds schematics for physical connection. Ok

"But where do I find that fiddly SD-card bracket?"

- Opens a drawer, sees a mound of useless MicroSD-adaptors. Ok.

2 comments

That was easy -- eventually. One only has to believe what the micropython manual says and not watch any instructables-videos.

   >>> os.mount(machine.SDCard(slot=2),"/sd")                                                                                                            
   >>> os.listdir('/sd')                                                                                                                                 
   ['DCIM', 'VIDEO', 'PHOTO']
Using SD-card on ESP8266 was more challenging.

upip.install('sdcard') did not work.

But ChatGPT truly helped and suggested I find it in Github.

https://github.com/micropython/micropython-lib/blob/master/m...

Esp32-cam has sdcard reader