|
This works similarly, but for the first digit it displays a '0'.
This method should work on any 3-digit number. The only thing you have to do, in addition to typing the program listed earlier, is make the printn procedure. This procedure has the interface to the 7-seg. display. So this procedure would have to read variable 'pn' and check to see its value. Suppose it's a zero, then print a zero, or if it's a seven then print a seven, etc. You will also have to write the delay procedure. This procedure must delay long enough for the user to see the number.
|
|