Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to set the flashing situation of the light after a delay of 5 with command language in Kingview?
How to set the flashing situation of the light after a delay of 5 with command language in Kingview?
Suppose your IO boolean bool 1.

Set an intermediate variable, such as the memory integer temp 1.

Add in the command language:

$ TERM mutation

if( bool 1)

{

if(temp 1 & lt; 10){

temp 1 = temp 1+ 1;

}

}

other

{

temp 1 = 0;

}

3. Connect temp 1 > by "blinking" in the connection elements in the diagram; five