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])`
|
||||
|
||||
#### 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.
|
||||
|
||||
#### Returns
|
||||
|
@ -170,7 +170,7 @@ Volume object
|
|||
|
||||
#### Example
|
||||
```lua
|
||||
vol = file.mount("SD0:")
|
||||
vol = file.mount("/SD0")
|
||||
vol:umount()
|
||||
```
|
||||
|
||||
|
@ -179,6 +179,7 @@ vol:umount()
|
|||
Registers callback functions.
|
||||
|
||||
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.
|
||||
|
||||
#### Syntax
|
||||
|
@ -204,7 +205,7 @@ sntp.sync(server_ip,
|
|||
```
|
||||
|
||||
#### See also
|
||||
[`rtctime.epoch2cal()`](rtctime.md#rtctimepoch2cal)
|
||||
[`rtctime.epoch2cal()`](rtctime.md#rtctimeepoch2cal)
|
||||
|
||||
## 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:
|
||||
|
||||
- only one file can be opened at a time
|
||||
- no support for sub-folders
|
||||
- no timestamps
|
||||
- no file attributes (read-only, system, etc.)
|
||||
|
|
Loading…
Reference in New Issue