The SD.begin() function initializes the SD library and SD card. It initializes the SPI bus, which is used for communication between Arduino and SD card. For SPI interface, the SS (slave select) pin is default to the hardware SS pin (pin 10 on most Arduino boards, 53 on the Mega)
- ss_pin: (optional) the pin connected to the slave select pin of the SD card. If not set, the hardware SS pin is used.
※ NOTES AND WARNINGS:
Even if you use a different SS pin from the default, the hardware SS pin must be kept as an output or the SD library functions will not work.
- true on success
- false on failure