I'm reading a guide about making libraries but when i compile i get this error:
sequenza_rgb:1: error: #include expects "FILENAME" or
#include RGB.h
^
exit status 1
#include expects "FILENAME" or
Here is the RGB.cpp
#include RGB.h
RGB :: Color()
{
r = 0;
g = 0;
b = 0;
}
RGB :: Color(unsigned int _r, unsigned int _g, unsigned int _b)
{
r = _r;
g = _g;
b = _b;
analogWrite(11, _r);
analogWrite(10, _b);
analogWrite(9, _g);
}
Here is the RGB.h
#ifndef RGB_h
#define RGB_h
#include Arduino.h
class Color
{
public:
Color();
Color(unsigned int _r, unsigned int _g, unsigned int _b);
unsigned int r;
unsigned int g;
unsigned int b;
}