Proper way to handle button (in hour counter)

  • 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.

  • @rosi

    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.