var dual1 =dualButton("center");
dual1.first_button({name:"ON", action:"digitalWrite",
pin:"1", value:"HIGH", bgcolor:"green",
shape:"rectangle", text_color:"white"})
dual1.second_button({name:"OFF", action:"digitalWrite",
pin:"1", value:"LOW", bgcolor:"green",
shape:"rectangle", text_color:"white"})
When the ON button is pressed PIN 1 should ON and OFF with a delay of 5min (loop)
When the OFF button is pressed PIN 1 should OFF
How to do it?