Shop OBEX P1 Docs P2 Docs Learn Events
PDB LED_Clock display — Parallax Forums

PDB LED_Clock display

NewzedNewzed Posts: 2,503
edited 2005-05-21 20:27 in BASIC Stamp
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.06yeah.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
Sign In or Register to comment.