Skip to main content

Inkplate 6FLICK MicroPython - Formatting the microSD card

The built-in microSD card slot on the back of Inkplate 6FLICK can be a great asset for your projects, either for storing a very large number of high-quality images which can be displayed or reading and writing data between deep sleep cycles.

⚠️
All supported card formats are: FAT16, FAT32, exFAT
⚠️
All supported card types are: SD, SDHC and SDXC

Preparing the microSD card before usage​

For best results, use the official SD card formatter to format the card to FAT32 before usage.

Official SD card formatter
The official SD Card formatter

Initialization​

Before the microSD card can be used, it must first be initialized. This powers on the microSD card circuitry and performs all the necessary memory allocations:

from inkplate6_flick import Inkplate
import time
from os import listdir

inkplate=Inkplate(Inkplate.INKPLATE_1BIT)
inkplate.begin()

# Note:
# - This function must be called before accessing files on the SD card.
# - The fastboot option has no effect if the device is already running.
inkplate.init_sd_card(fast_boot=True)

inkplate.sd_card_sleep()

inkplate.init_sd_card()

Initialize the onboard microSD card interface, allowing images, fonts, and data files to be loaded from the SD card.

Returns value: Boolean, True if the SD card was successfully initialized, otherwise False.

Function parameters:

TypeNameDescription
Booleanfast_bootOptional. If True (default), use faster initialization to reduce startup time.

inkplate.sd_card_sleep()

Puts the microSD card circuitry into low-power sleep mode to save energy when the card is not in use.