Напишите текст ошибки, ибо не разобрать на картинке. И под какую ардуину компилите. Оказалось, есть существенная разница в применении библы SD под UNO и под MEGA (https://learn.adafruit.com/adafruit-dat ... d-leonardo)ligor73 писал(а):Не получается скомпилировать. Пишет ошибка.
If you are using an Leonardo or Mega, you will have to replace the existing SD card library to add 'SD card on any pin' support. If you have an Uno/Duemilanove/Diecimila, this is not required.
Using the SD Library with the Mega and Leonardo
Because the Mega and Leonardo do not have the same hardware SPI pinout, you need to specify which pins you will be using for SPI communication with the card. For the data logger shield, these will be pins 10, 11, 12 and 13. Find the location in your sketch where SD.begin() is called (like this):and change it to add these pin numbers as follows:// see if the card is present and can be initialized:
if (!SD.begin(chipSelect)) {// see if the card is present and can be initialized:
if (!SD.begin(10, 11, 12, 13)) {
