Hello everyone. Sorry if topic is dublicate but i need help. I receive everything and i assembler using instruction from web site. But when try to connect and upload a software from arduino software i receive this message. I download all libraries but.... Its look like file SPI.h is missing
Rhank you in advance
Here is the log message
In file included from switch_mote.ino:27:0:
C:\arduino-nightly\libraries\SPIFlash-master/SPIFlash.h:25:17: fatal error: SPI.h: No such file or directory
#include <SPI.h>
^
compilation terminated.
Error compiling.
Quote from: adobe on May 20, 2015, 06:10:51 PM
Hello everyone. Sorry if topic is dublicate but i need help. I receive everything and i assembler using instruction from web site. But when try to connect and upload a software from arduino software i receive this message. I download all libraries but.... Its look like file SPI.h is missing
Rhank you in advance
Here is the log message
In file included from switch_mote.ino:27:0:
C:\arduino-nightly\libraries\SPIFlash-master/SPIFlash.h:25:17: fatal error: SPI.h: No such file or directory
#include <SPI.h>
^
compilation terminated.
Error compiling.
I think you need to add:
#include <SPI.h>
to your main sketch code.
Tom
Doesn't the library have to be named the same as the files in it? (Ie without the "-master")
Quote from: Felix on May 20, 2015, 08:52:42 PM
Doesn't the library have to be named the same as the files in it? (Ie without the "-master")
Ah, right, missed that! Good catch.
Tom
Yes thanks for answer, the problem was in missing code: #include <SPI.h> i put after #include <SPIFlash.h> and now is ok. Thank you so much TomWS