PDB LED_Clock display
Yesterday we posted a little program to drive the PDB LED display.· Here is a slightly more practical program - we married the PDB DS1307 to the LED to display the current time.· The·code section for the DS1307 uses HEX2 format instead of the decimal/BCD format.· The HEX2 is a bit easier to handle when displaying time.· Remember, when using HEX2 format, yoiu must enter two digits for each clock parameter.· For instance, 9 AM would be entered as '09'.· DO NOT hit Enter - the program continues automatically when two digits have been entered.· The LED has no colon, so we left Digit 2 blank to provide a separation between hours and minutes - looks quite nice.· The LED is refreshed about every five seconds - you will notice a little blink each time.· If you don't have a PS2p24, this program will work with a BS2 and a DS1302.· You'll have to change the clock code, of course, and the pin assignments.· There are 11 bytes of RAM available and 11 I/O lines are unassigned.· Total parts cost is still $1.06![yeah.gif](http://forums.parallax.com/images/smilies/yeah.gif)
Have fun - the PDB is fantastic!· Next effort will be to try out the 4-channel relay drivers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Need a bezel for your LCD?
Newzed@aol.com
![yeah.gif](http://forums.parallax.com/images/smilies/yeah.gif)
Have fun - the PDB is fantastic!· Next effort will be to try out the 4-channel relay drivers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Need a bezel for your LCD?
Newzed@aol.com