I have this display wich counts from 1 to 6 with a delay of 100 miliseconds in a loop
When i press a button this stops and shows the digit where you stopped on.
i'm having trouble with the code, can somebody help?
devinket:
I have this display wich counts from 1 to 6 with a delay of 100 miliseconds in a loop
When i press a button this stops and shows the digit where you stopped on.
The way that's written, it comes across as that's what it does right now. Or is that just your style of writing and it's actually just what you want it to do? Maybe you should clarify what it that you want it to do, and contrast that with what it actually does. And describe "this display" maybe? ... LED 7 segment? LCD? Nextion?
If I was creating a dice (or one die ) I would use a random number generator, not a sequential counter, by the way.