Puntigamer
Member
Hello everyone.
I'm trying to write a program in ST which would toggle a bit with one button. So when the button is pushed the bool sets to 1 and when I push again it goes back to zero. I kinda did that but the problem is that if I hold the button, then the bit is switching on and off all the time. Can someone support me with a simple solution?
I'm trying to write a program in ST which would toggle a bit with one button. So when the button is pushed the bool sets to 1 and when I push again it goes back to zero. I kinda did that but the problem is that if I hold the button, then the bit is switching on and off all the time. Can someone support me with a simple solution?