class Port{
private:
uint8_t redPin, greenPin, bluePin;
public:
uint8_t getRed(){return redPin;}
uint8_t getGreen(){return greenPin;}
uint8_t getBlue(){return bluePin;}
Port(uint8_t redPin, uint8_t greenPin, uint8_t bluePin){
uint8_t red = redPin;
uint8_t green = greenPin;
uint8_t blue = bluePin;
}
};
void setup()
{
Port port1 (3,4,5);
}
This is the code I have written. It is just an object to keep track of which pin is which on multiple RGB LEDs. The error I get is error: 'Port' has not been declared. The line it gives for the error is a blank line. Any ideas?