这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
reference:library:sd [2017/04/07 10:03] – 外部编辑 127.0.0.1 | reference:library:sd [2023/06/07 04:24] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== SD库 ====== | ||
+ | |||
+ | SD库允许在例如Arduino Ethernet Shield之类的扩展板上对SD卡进行读和写的操作。该库基于William Greiman编写的sdfatlib。该库支持在标准SD卡和SDHC卡上使用FAT16和FAT32文件系统。使用8.3格式的短文件名。传递到SD库函数的文件名可以包含由正斜杠/ | ||
+ | |||
+ | The communication between the microcontroller and the SD card uses SPI, which takes place on digital pins 11, 12, and 13 (on most Arduino boards) or 50, 51, and 52 (Arduino Mega). Additionally, | ||
+ | Notes on using the Library and various shields | ||
+ | |||
+ | ===== SD 类 ===== | ||
+ | |||
+ | SD类提供访问SD卡和操作卡上文件和目录的函数。 | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | ===== File 类 ===== | ||
+ | |||
+ | File类允许你对SD卡上的单个文件进行读和写 | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | * [[reference: | ||
+ | ===== Examples ===== | ||
+ | |||
+ | * Datalogger: Log data from three analog sensors to a SD card using the SD library | ||
+ | * DumpFile: Read a file from a SD card using the SD library and send it over the serial port | ||
+ | * Files: Create and destroy a file on a SD card | ||
+ | * ReadWrite: Read and write data to and from a file on a SD card | ||
+ | * CardInfo: Get information about a SD card | ||
+ | |||
+ | Reference Home |