In the code only change the buttob state when it is pressed. And change it to the current states negative. That way the flickering will stop, and the push button will work like a switch rather then having to be pushed down all the time. Great video otherwise :-)
@MakersArena2 ай бұрын
You're totally right mate but the purpose of the video was just to understand the basic logic of buttons and reading data rather than mastering buttons:)