Let's Make Robots!

7-segment display

Problem with robot program select menu

I have a problem with programming a menu for selecting my programs for my robot.

The program has to show 9 numbers from 1 to 9 on a 7-segment display, representing a program(avoidance, linefollowing,....)

With 2 switches you go up or down a number and you comfirm with the 3the button(selecting the program you want). The 3 buttons are 1 input that gives a different value depending which button is pressed.