Control all leds at once by one prss

Hello,
im using esp8266 to control 6 leds
i wont a button to control all leds in the same time ?! !
cayenne|281x500

CAYENNE_IN(1)
{
int value = getValue.asInt();
if (value == 1)
{
//turn all LED 
}
}
1 Like