@@ -162,7 +162,7 @@ Not supported for internal flash.
...
@@ -162,7 +162,7 @@ Not supported for internal flash.
`file.mount(ldrv[, pin])`
`file.mount(ldrv[, pin])`
#### Parameters
#### Parameters
-`ldrv` name of the logical drive, `SD0:`, `SD1:`, etc.
-`ldrv` name of the logical drive, `/SD0`, `/SD1`, etc.
-`pin` 1~12, IO index for SS/CS, defaults to 8 if omitted.
-`pin` 1~12, IO index for SS/CS, defaults to 8 if omitted.
#### Returns
#### Returns
...
@@ -170,7 +170,7 @@ Volume object
...
@@ -170,7 +170,7 @@ Volume object
#### Example
#### Example
```lua
```lua
vol=file.mount("SD0:")
vol=file.mount("/SD0")
vol:umount()
vol:umount()
```
```
...
@@ -179,6 +179,7 @@ vol:umount()
...
@@ -179,6 +179,7 @@ vol:umount()
Registers callback functions.
Registers callback functions.
Trigger events are:
Trigger events are:
-`rtc` deliver current date & time to the file system. Function is expected to return a table containing the fields `year`, `mon`, `day`, `hour`, `min`, `sec` of current date and time. Not supported for internal flash.
-`rtc` deliver current date & time to the file system. Function is expected to return a table containing the fields `year`, `mon`, `day`, `hour`, `min`, `sec` of current date and time. Not supported for internal flash.
Accessing files on external SD cards is currently only supported from the `file` module. This imposes the same overall restrictions of internal SPIFFS to SD cards:
Accessing files on external SD cards is currently only supported from the `file` module. This imposes the same overall restrictions of internal SPIFFS to SD cards: