Two line LCD double height numbers, possible ???


Results 1 to 26 of 26

Threaded View

  1. #25


    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.

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