I'm creating a few classes for a project, which seems so specific that I don't want to keep in the libraries folder. They're mostly working, however, if I want to call any Arduino functions or consts, it will throw errors "is not declared in this scope".
sketch:
#include "MyClass.h"
void setup(){
}
void loop(){
}
MyClass.h
class MyClass{
public:
MyClass(int inp);
int myFun();
};
MyClass.cpp
#include "MyClass.h"
#include <WProgram.h>
MyClass::MyClass(int inp){
pinMode(13,HIGH);
}
error:
MyClass.cpp: 'HIGH','pinMode' is not declared in this scope.
It wouldn't happen if I put the libraries in libraries folder though. Wondering if there's a way to include arduino functions into sketch folder libraries?