Hacker News new | ask | show | jobs
by timonoko 1279 days ago
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']
1 comments

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...