Skip to main content

Formatting MicroSD

Built in microSD card slot on the back of Inkplate 6COLOR 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. This page walks through microSD initialization and image display.

⚠️
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 inkplate6COLOR import Inkplate

from os import listdir

# Create Inkplate object
inkplate = Inkplate()

# Initialize the display, needs to be called only once
inkplate.begin()

# Initialize the SD card.
# 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.initSDCard(fastBoot=True)

inkplate.initSDCard()

Initializes SD card through SPI

Function parameters:

TypeNameDescription
boolfastBootIf True, performs a soft reboot immediately after SD card initialization (only on cold start or hard reset) which significantly improves SD card read speeds.