Methods to control SD cards. The use is optional, because
the support of SD cards is built into low.js. To use an SD card, all you
need to do is enable it in the low.js settings.
Methods
(static) format(callbackopt)
Formats the SD card
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
SDCardMountFormatCallback |
<optional> |
called when the sd card is formatted |
(static) mount(callbackopt)
Re-mounts the SD card. Do this if a read or write to the sd card fails.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
SDCardMountFormatCallback |
<optional> |
called when the sd card is re-mounted |
Type Definitions
SDCardMountFormatCallback(errnullable)
Callback which is called when the sd card is mounted or formatted
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
err |
Error |
<nullable> |
optional error |