#define LED_PIN 13
#define LED_PINN 14
#define LED_PINNN 15
byte currentLEDValue;
byte currentLEDValuee;
byte currentLEDValueee;
ZUNO_SETUP_CHANNELS(ZUNO_SWITCH_BINARY(getter, setter),
ZUNO_SWITCH_BINARY(getterr, setterr),
ZUNO_SWITCH_BINARY(getterrr, setterrr));
ZUNO_SETUP_FREQUENCY(ZUNO_FREQ_RU);
void setup() {
pinMode(LED_PIN, OUTPUT);
pinMode(LED_PINN, OUTPUT);
pinMode(LED_PINNN, OUTPUT);
}
void loop() {
}
void setter (byte value) {
if (value > 0) {
digitalWrite (LED_PIN, HIGH);
} else {
digitalWrite(LED_PIN, LOW);
}
currentLEDValue = value;
}
void setterr (byte valuee) {
if (valuee > 0) {
digitalWrite (LED_PINN, HIGH);
} else {
digitalWrite(LED_PINN, LOW);
}
currentLEDValuee = valuee;
}
void setterrr (byte valueee) {
if (valueee > 0) {
digitalWrite (LED_PINNN, HIGH);
} else {
digitalWrite(LED_PINNN, LOW);
}
currentLEDValueee = valueee;
}
byte getter (){
return currentLEDValue;
}
byte getterr (){
return currentLEDValuee;
}
byte getterrr (){
return currentLEDValueee;
}