Two line LCD double height numbers, possible ???


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Two line LCD double height numbers, possible ???

    You can modify the "Elapsed_INT.bas". If you open this file you will see some pbp code at "ClockCount:" . You can change the if statements for Hours, minutes, and seconds. Or you can add another varible and maintain the original code. I added the code in bold. Hope it helps.

    Code:
    seconds2 var word 'place in main code
    ClockCount:
    @ RELOAD_TIMER                    ; Reload TIMER1
        Ticks = Ticks + 1
        if Ticks = 100 then
           Ticks = Ticks-100
           Seconds = Seconds + 1
    SecondsChanged = 1
    seconds2 = seconds2 + 1
     If seconds2 = 500 then ' Rollover at 500 seconds
      seconds2= 0
       
           if Seconds = 60 then
              Minutes = Minutes + 1
              MinutesChanged = 1
              Seconds = 0
           endif
           if Minutes = 60 then
              Hours = Hours + 1
              HoursChanged = 1
              Minutes = 0
           endif
           if Hours = 24 then
              Days = Days + 1
              DaysChanged = 1
              Hours = 0
           endif
        endif
    @ INT_RETURN                      ; Restore context and return from
    Last edited by mark_s; - 10th January 2012 at 22:21.

  2. #2
    Join Date
    Dec 2011
    Location
    IO93ok
    Posts
    190


    Did you find this post helpful? Yes | No

    Default Re: Two line LCD double height numbers, possible ???

    Hi Mark,

    Many thanks, I was just logging in to report what an idiot I am and to say it all works.

    I had done all that and more but it still refused to work.

    Doh, turns out I was altering a spare copy of Elapsed_INT in another folder !!!

    I'm going to turn on the MCS option to show the full path so in future i won't make the same mistake again.

Members who have read this thread : 1

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