class Led {
byte pin;
public:
Led(byte pinInput) {
pinMode(pinInput, OUTPUT);
pin = pinInput;
}
void on() {
digitalWrite(pin, HIGH);
}
void off() {
digitalWrite(pin, HIGH);
}
};
Led Led1(13), Led2(12), Led3(11);
void setup() {
Led2.on();
}
void loop() {
// put your main code here, to run repeatedly:
}