small fixes for sdcard and file doc
This commit is contained in:
parent
a592af7ab1
commit
5425adefff
|
@ -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
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
```lua
|
```lua
|
||||||
vol = file.mount("SD0:")
|
vol = file.mount("/SD0")
|
||||||
vol:umount()
|
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.
|
||||||
|
|
||||||
#### Syntax
|
#### Syntax
|
||||||
|
@ -204,7 +205,7 @@ sntp.sync(server_ip,
|
||||||
```
|
```
|
||||||
|
|
||||||
#### See also
|
#### See also
|
||||||
[`rtctime.epoch2cal()`](rtctime.md#rtctimepoch2cal)
|
[`rtctime.epoch2cal()`](rtctime.md#rtctimeepoch2cal)
|
||||||
|
|
||||||
## file.open()
|
## file.open()
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
- only one file can be opened at a time
|
|
||||||
- no support for sub-folders
|
- no support for sub-folders
|
||||||
- no timestamps
|
- no timestamps
|
||||||
- no file attributes (read-only, system, etc.)
|
- no file attributes (read-only, system, etc.)
|
||||||
|
|
Loading…
Reference in New Issue