Digits on an LCD


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Try
    DEC2
    That should show the leading zero.
    Dave
    Always wear safety glasses while programming.

  2. #2
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,

    I tried that, both DEC1 and DEC2, but it worked bacwards, in that it didn't display the 'tens' digits, just the 'units', unless I was using the command incorrectly ?

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Code:
    LCDOut $FE,$D4,#starthours DIG 1,#starthours DIG 0,":",#startmin DIG 1,#startmin DIG 0
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Bruce, I'll give that a go when I get home.

    I hadn't tried that as I thought that when the value was less than 10 I might get strange readings as there wold only be one DIGIT ?

    More reading of the manual I figure

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Hi Malcom,

    It definitely works. It will display time like you want with 09:03, 08:06, 13:34, etc.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  6. #6
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Works a treat - thanks Bruce

  7. #7
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Rewind a week and check the comment I posted when you last mentioned the above on the DS1307 thread...

  8. #8
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    Rewind a week and check the comment I posted when you last mentioned the above on the DS1307 thread...
    Yeah, I looked for that... and as mentioned tried the DIG2, but obviously missed the DIG 1, DIG 2 format...

    One day Mel this will click - I promise

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts