Forum Discussion
Altera_Forum
Honored Contributor
16 years agoOdd Bug
Hello, I am very new to Altera and microchip programming. Today I wrote(with a lot of code borrowed from a book) a program that does what it's supposed to do, but also something else that it's not. ...
Altera_Forum
Honored Contributor
16 years agoYour code doesn't control the segment display directly, so I can't tell you what's the problem.
However I see that 'pin' changes from 0 to 8: is this correct? Or maybe you were supposed to use a 0 to 7 range? Infact in the following case statement you only account for these 8 values. With the code you have written PinNumber keeps the "111" status twice.