Proper way to handle button (in hour counter)
RoSi last edited by
Hey, I am trying to do a hour counter with possibility to reset it to zero when button will be pressed.
An actual flow is:
Function disp just displaying large numbers 0 to 15.
To speed things up a variable secondsToCount can be decreased to let's say 5.
world101 last edited by world101
Just add the “Button A wasPressed” callback (located in the Event blockly menu) to your flow and within that block, reset your counter values to the same as in the Setup function.