Ok, I have a custom library that works great. It's C++ and I have the separate .h and .cpp files. Everything has compiled fine until I added four new functions to the .cpp file and defined them in the .h file first. I am at a total loss on why these are not visible now.
In the .h file, I have this:
#ifndef MYLIB_H
#define MYLIB_H
class Mine
{
public:
void systemReset();
void flashLED(int red, int green, int blue, int repeat, int sdelay);
void radioInterrupt();
private:
}
#endif
In my .cpp file, my functions are as follows:
#include "MyLib.h"
void MyLib::systemReset()
{
}
void MyLib::flashLED(int red, int green, int blue, int repeat, int sdelay)
{
}
void MyLib::radioInterrupt()
{
}
WTF am I missing here? I keep getting told "class MyLib does not have a member named flashLED". In my sketch I am doing this:
#include "MyLib.h"
MyLib mylib;
setup()
{
mylib.flashLED(0,128,36,5,5);
}