I can feel I'm loosing something important in my life while evaluating 2001 millis. Why is it not to use del_var - 42.millis()? Then we will have mut del_var = 2042.millis()
Hello Николаев Василий, sure you could. Though this would imply the duration of how often you check for the button to get pressed. In the code, it's being checked every 1 ms if the button is pressed. With your suggestion, it's every 42 milliseconds. It only has to be often enough to not miss a press event since we are polling.