I deleted the SPI.h library, what do I do to fix it?

/Users/dcd/Documents/Arduino/libraries/SD/src/utility/Sd2Card.cpp:31:12: fatal error: SPI.h: No such file or directory
#include <SPI.h>
^~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

You can download it and then reinstall it.

Hi @dominicod. Which board do you have selected from the Tools > Board menu in Arduino IDE?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.