LED Digital Clock using V4 Digital Clock Example
Posted: Wed Jul 28, 2010 3:42 pm
Hello,
Im using the Version 4 Digital Clock Example written for an LCD and converting it to drive individual 7 Segment LED Displays.
Issue i am having is converting Hours, Minutes and Seconds (declared as Bytes in the example) to individual digits so they can be displayed on the 7 Segment LED Macro
for example if Hours = 12 then I need to separate this into a 1 for Hours "Tens" position and 2 for Hours"Ones" position - same for minutes and seconds.
The LED 7 Segment Macro will not deal with a 2 digit number - wants individual digits.
Thanks for any help
Im using the Version 4 Digital Clock Example written for an LCD and converting it to drive individual 7 Segment LED Displays.
Issue i am having is converting Hours, Minutes and Seconds (declared as Bytes in the example) to individual digits so they can be displayed on the 7 Segment LED Macro
for example if Hours = 12 then I need to separate this into a 1 for Hours "Tens" position and 2 for Hours"Ones" position - same for minutes and seconds.
The LED 7 Segment Macro will not deal with a 2 digit number - wants individual digits.
Thanks for any help