-
Notifications
You must be signed in to change notification settings - Fork 9
Description
I'm trying to test the same code in a normal Arduino build using the IDE (mainly 1.05).
Specifically, I'm building for Uno or Blend Micro. Same thing happens in both cases.
I have the .cpp and .h files inside a folder within the libraries folder.
I have successfully built other sketches that use SPI but in those cases SPI is called from the .ino file rather than from within a library.
I made the change in the .h file
//#include "application.h"
#include "Arduino.h"
SPI not defined so added in .cpp file, the .h file and .ino file (renamed from .cpp file in /examples)
#include "SPI.h"
Still getting errors like:
no matching function for call to 'SPIClass::begin(uint8_t&)'
Evidently the IDE is converting to this from "SPI.begin(_CS);" and then failing to find "SPIClass"
A little too much magic buried in IDE? I'm trying to find out why this is happening but posting here in case I'm missing something that would be needed in a case like this. Online I see various instances of this error with other libraries but no useful solutions.
Any help appreciated ;-)