Digital dice using 7 segment (arduino)

Hi, I'm making a digital dice in electrical class. Have had this error for a while and can't seem to figure it out, the error reads " expeced } before 'else'". I've looked through my code and can't seem to find the problem (i am beginner in coding so apologies if this is easy fix but ive been stuck for a while)

In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.

Use the </> icon from the ‘reply menu’ to attach the copied sketch.

thanks, for some reason since im a new user it wont let me upload my code to show everyone, would you know a way around this too?

Maybe a moderator can chime in here.

Sounds like you're missing a curly brace at the end of an if statement or the else that is right before the one the compiler noted.
If you click immediately to the right of any curly brace, the IDE will put a helpful rectangle around its counterpart. Check that they are all what they're supposed to be.

@LarryD did not ask you to upload code but to post it. Please read How to get the best out of this forum.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the IDE 1.x category.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.