Commit 92a6e594 authored by Marcel Stör's avatar Marcel Stör
Browse files

Fix SD card docs

parent ecf8bd98
# FAT File System on SD Card # FAT File System on SD Card
Accessing files on external SD cards is currently only supported from the `file` module. This imposes the same overall restrictions of internal SPIFFS to SD cards: Accessing files on external SD cards is currently only supported from the `file` module. This imposes the same overall restrictions of internal SPIFFS to SD cards:
- only one file can be opened at a time - only one file can be opened at a time
- no support for sub-folders - no support for sub-folders
- no timestamps - no timestamps
...@@ -17,6 +18,7 @@ Uncomment `#define BUILD_FATFS` in [`user_config.h`](../../app/include/user_conf ...@@ -17,6 +18,7 @@ Uncomment `#define BUILD_FATFS` in [`user_config.h`](../../app/include/user_conf
## SD Card connection ## SD Card connection
The SD card is operated in SPI mode, thus the card has to be wired to the respective ESP pins of the HSPI interface. There are several naming schemes used on different adapters - the following list shows alternative terms: The SD card is operated in SPI mode, thus the card has to be wired to the respective ESP pins of the HSPI interface. There are several naming schemes used on different adapters - the following list shows alternative terms:
- `CK, CLK, SCLK` to pin5 / GPIO14 - `CK, CLK, SCLK` to pin5 / GPIO14
- `DO, DAT0, MISO` to pin 6 / GPIO12 - `DO, DAT0, MISO` to pin 6 / GPIO12
- `DI, CMD, MOSI` to pin 7 / GPIO13 - `DI, CMD, MOSI` to pin 7 / GPIO13
...@@ -30,8 +32,8 @@ Connection of `SS/CS` can be done to any of the GPIOs on pins 1 to 12. This allo ...@@ -30,8 +32,8 @@ Connection of `SS/CS` can be done to any of the GPIOs on pins 1 to 12. This allo
The adapter does not require level shifters since SD and ESP are supposed to be powered with the same voltage. If your specific model contains level shifters then make sure that both sides can be operated at 3V3. The adapter does not require level shifters since SD and ESP are supposed to be powered with the same voltage. If your specific model contains level shifters then make sure that both sides can be operated at 3V3.
<img src="../img/micro_sd.jpg" alt="1:1 micro-sd adapter" width="200"/> ![1:1 micro-sd adapter](../img/micro_sd-small.jpg "1:1 micro-sd adapter")
<img src="../img/micro_sd_shield.jpg" alt="micro-sd shield" width="200"/> ![micro-sd shield](../img/micro_sd_shield-small.jpg "micro-sd shield")
## Lua bindings ## Lua bindings
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment