Skip to main content

Features

The microSD card is one of the essential parts for the operation of the Kode Dot. In it the applications, configuration data and user files are stored. In addition, for projects and applications that are developed in kodeOS, it is the easiest way to save the data that is generated.

Connection diagram

The microSD is connected to the ESP32-S3 via SDIO, in 1-bit mode. Thus, the SD/MMC Host peripheral that has the ESP32-S3 dedicated to read and write on the microSD is used. The connection between the microSD and the ESP32-S3 is as follows:
The Card Detected pin is connected to EXP14 of the IO expander. See IO expander for more information.

Arduino

ESP-IDF

  • No requires additional libraries.

Example code

This code will make a test of the microSD in this order:
  1. List directories
  2. Create a directory
  3. List directories
  4. Delete a directory
  5. List directories
  6. Write a file
  7. Add a message to the end of a file
  8. Read a file
  9. Delete a file
  10. Rename a file
  11. Read a file
  12. Test of reading and writing performance
microsd_test.ino

Download examples

You can test the example codes using the Arduino IDE or the ESP-IDF IDE or download the codes in our drive: MicroSD examples