My app has a switch-mode button with a virtual pin.
When I touch this button, it remains on. (Press again to turn off)
How do I write the code so that the timeout is automatically reset to off (for example, 10 seconds)?
Blynk.virtualWrite (V13,0);
I know I need to use this function.
I’d appreciate it if you could give me a code to set a timeout.
If the delay function is used, the button operation is impossible during the delay time.
So I want to make it work by measuring the time when the button operation does not occur.