privatize methods
This commit is contained in:
parent
063206dec0
commit
aed5ff152b
@ -14,8 +14,6 @@ class DeviceLed : public Device {
|
|||||||
virtual void setup();
|
virtual void setup();
|
||||||
virtual void homieRegister();
|
virtual void homieRegister();
|
||||||
virtual void loop();
|
virtual void loop();
|
||||||
bool ledOnHandler(String value);
|
|
||||||
bool ledColorHandler(String message);
|
|
||||||
private:
|
private:
|
||||||
byte pinRed;
|
byte pinRed;
|
||||||
byte pinGreen;
|
byte pinGreen;
|
||||||
@ -23,6 +21,8 @@ class DeviceLed : public Device {
|
|||||||
int led_red = 0;
|
int led_red = 0;
|
||||||
int led_green = 0;
|
int led_green = 0;
|
||||||
int led_blue = 0;
|
int led_blue = 0;
|
||||||
|
bool ledOnHandler(String value);
|
||||||
|
bool ledColorHandler(String message);
|
||||||
HomieNode ledNode{"led", "rgb"};
|
HomieNode ledNode{"led", "rgb"};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user