Maker
Most folk just call me; Orange Joe
- Messages
- 10,642
- Location
- Keeler crater
\! Other versions of Arduino Spi library (such as `SPI.h`) wont work / wernt tested.
I don't have a clue what you mean, I'm quite new to thisI've never programmed for an arduino but bear in mind that a header in <angle-brackets> is searched for in the include-headers path, whereas a header in "quotes" is looked for in the current directory.
So eSCHEn's point is valid - if it's in the core library then you should probably be using "#include <spi.h>" to refer to the core libs, rather than a version that may have shipped with the sketch.
Finally, I'm guessing the aruino is Linux-based? If so then the paths will be case sensitive so you need to verify the exact spelling of the header file and match the case.
From a Linux shell, either do an "ls -l" or you could try and find all files that are like spi.h, no matter their case, with;
find . -name '[sS][pP][iI].[hH]' -print
The "." refers to the current directory - you can replace that with an explicit folder name if you like, for example "find /usr/include -name ..."
Not necessarily, but I already have a couple of them so I'd rather not buy more if possible.
I downloaded this from your link, unzipped it, put it in the right place and tried to use it but I get:Could you check it out of github? Not sure if this header file is all you need or you have to work up the tree to find the rest of any dependancies, but its a start.
https://github.com/dkirkby/athomeleaf/blob/master/Spi.h
Skotl, its a Atmel AVR microcontroller onboard, the headers etc are all compiled in on the build computer then transferred to the arduino via flash/jtag etc as compiled for the atml.
He needs the header files to support the sketch being compiled into this. Its all very point and clicky and easy living with friendly names for things if your using the gui client instead of make files and a cross compiler but at its core thats what it is.
Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Leonardo"
In file included from Mcp4261Example.pde:4:0:
C:\Users\AHarrington\Documents\Arduino\libraries\athomeleaf-master/mirf.h:30:22: fatal error: WProgram.h: No such file or directory
#include <WProgram.h>
^
compilation terminated.
Error compiling.
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif