<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5Stack Core S3 Access to SDCARD Micropython]]></title><description><![CDATA[<p dir="auto">Hello,<br />
Can someone point me at some example code to access the SDCard in Core S3 using micropython?<br />
Last year there were several discussion topics, I suspect it works. Just need a sample.<br />
Thanks</p>
]]></description><link>https://community.m5stack.com/topic/7188/m5stack-core-s3-access-to-sdcard-micropython</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:46:58 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7188.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Jan 2025 16:39:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stack Core S3 Access to SDCARD Micropython on Sun, 12 Jan 2025 14:35:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lordinchcape" aria-label="Profile: LordInchcape">@<bdi>LordInchcape</bdi></a> Using M5CoreS3_SDCard_read_dir_UIFlow2.0.4 the following micropython will work:-<br />
*import machine<br />
import os</p>
<p dir="auto">card = machine.SDCard(slot=2, sck=36, miso=35, mosi=37, cs=4, freq=1000000)<br />
os.mount(card,"/sd")<br />
print(os.listdir("/sd"))</p>
<p dir="auto">f = open("/sd/test.txt", "w")<br />
f.write("Hello world\r\n")<br />
f.close()</p>
<p dir="auto">g = open("/sd/test.txt", "r")<br />
print(g.read())<br />
g.close()<br />
os.unlink("/sd/test.txt")**</p>
<p dir="auto">Still to determine if it treads on something else.</p>
]]></description><link>https://community.m5stack.com/post/27866</link><guid isPermaLink="true">https://community.m5stack.com/post/27866</guid><dc:creator><![CDATA[LordInchcape]]></dc:creator><pubDate>Sun, 12 Jan 2025 14:35:26 GMT</pubDate></item></channel></rss>