Module: sdcard

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.
Source:

Methods

(static) format(callbackopt)

Formats the SD card
Parameters:
Name Type Attributes Description
callback SDCardMountFormatCallback <optional>
called when the sd card is formatted
Source:

(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
Source:

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
Source: