In order to make the seven segment display, these double digits need to be separated into single ones. For the seconds figure, the value is divided by 10 where the value becomes the left hand digit, and the remainder becomes the right hand digit. This is then repeated for minutes, and hours:
These individual values can now be used to program a seven segment display for the clock. The seven segment display digits are assigned to an array where each combination of LEDs are stored for the numbers 0-9. The calculated digits from earlier can then be used to extract the correct LED combination from the array to display the number. The next step is to document it all into easy to follow instructions.
No comments:
Post a Comment
Comments: