Dice

Hey im trying to make anelectronic dice,

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'm having trouble with the code, can somebody help?

No, for one outstandingly obvious reason. :roll_eyes:

Hint: Read the instructions. :grinning:

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 :wink: ) I would use a random number generator, not a sequential counter, by the way.

This topic was automatically closed after 120 days. New replies are no longer allowed.