You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[sdcard](https://github.com/echo-lalia/MicroHydra/blob/main/src/lib/sdcard/mhsdcard.py) provides an interface to mount and unmount the SD Card device.
4
+
5
+
At its core, the module is a wrapper around the same interface that MicroPython uses.
6
+
7
+
It exposes a singular class, SDCard.
8
+
9
+
## constructor:
10
+
11
+
`sdcard.SDCard()`
12
+
13
+
> Create the class necessary for mounting the device.
14
+
15
+
> Args: None.
16
+
17
+
## mount:
18
+
19
+
`SDCard.mount()`
20
+
21
+
> Mounts the available sd card device at /sd in the filesystem.
22
+
23
+
> This method always returns `None`.
24
+
25
+
> If the sd card is already mounted, this method does nothing.
26
+
27
+
> Additionally, if an error is encountered, a message may be sent to `stdout`.
28
+
29
+
## deinit:
30
+
31
+
`SDCard.deinit()`
32
+
33
+
> Unmounts the mounted sd card device.
34
+
35
+
> Attempting to unmount a mounted device, may cause a system error. See [MicroPython's vfs.umount](https://docs.micropython.org/en/latest/library/vfs.html#vfs.umount) for details.
0 commit comments