help with dice game program

Hi,

I need to create a dice game application written in C for the Arduino that uses two seven segment displays to show the result of the roll (dots on the dice). My application should use one or more functions that you create yourself.

When the user pushes a pushbutton, the display should cycle through the specified pattern at a 1-5 /sec rate. The pattern should turn on a single segment at a time – one after the other around the periphery of the two vertically “stacked” 7 segment displays.

Attached is what I have in my program so far

Thanks!

dice_idea.ino (5.54 KB)

So, you have some code that, presumably, does something. You expect/need for it to do something.

And, yet, you have told us what neither of those things is.

Does your instructor know that you are asking us to do your homework?

Start by not using pins 0 and 1 as outputs. You will need to use the Serial monitor for debugging and that uses pins 0 and 1

You call the sevenseg() function in several places in your code but you don't seem to have a function with that name in your program

thanks, will work on the program, thanks for the comments

And no I'm not asking someone to do the homework, I'm new in Arduino and just want some feedback and comments so I can learn.

What is the Dice2 function doing? It is never called so that code can never run.

just want some feedback and comments

When you find yourself writing the same code over and over and over, it is time to learn how using arrays to make your code a tiny fraction of what it is mow.