Why does sketch using SD.h suddenly need #include <SPI.h> to compile?


hopefully 1 of our resident experts can explain me!

naon v3.0   ide 1.0.5 catalex microsd card adapter  icsp bus

sketches interface sd card reader (e.g. standard example cardinfo), stopped compiling:
sd/utility/sd2card.cpp.o: in function `sd2card::setsckrate(unsigned char)':
/users/adrianland/documents/arduino/libraries/sd/utility/sd2card.cpp:585: undefined reference `spiclass::setclockdivider(unsigned char)'
…etc…

adding:
#include <spi.h> 

seems fix problem, why problem came out of nowhere, , why need #include, concerns me!
any guidance appreciated.

you have post program if want answer.

either there call function spi library or there typo makes compiler think there call spi library.

...r


Arduino Forum > Using Arduino > Programming Questions > Why does sketch using SD.h suddenly need #include <SPI.h> to compile?


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support