DS1307 Problems help please !!! :-)


Results 1 to 5 of 5

Threaded View

  1. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default Re: DS1307 Problems help please !!! :-)

    Code:
      
    mainloop:   
                Gosub gettime        ' Read the time from the RTC
    
                IF (RTCHour=$00) and (RTCMin=$01) Then 
                     Gosub Light_On ' Light on
                ENDIF
    
                IF (RTCHour=$00) and (RTCMin=$02) Then 
                   Gosub Light_Off ' Light off
                ENDIF
    
                Pause 500            ' Do it about 2 times a min
    
                Goto mainloop        ' Do it forever and ever and ever
            
            
            
    Light_On:   high Light
                return 
                
    Light_Off:  Low light
                return             
                
            
           
       End
    Last edited by sayzer; - 19th September 2018 at 14:11.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. 7 segment clock PIC16f72 with DS1307 problems!!!!!!!
    By Antorbd04 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th December 2013, 15:07
  2. using DS1307
    By Scampy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 2nd December 2013, 10:01
  3. ds1307
    By jonas2 in forum Code Examples
    Replies: 0
    Last Post: - 2nd November 2009, 09:50
  4. DS1307 help
    By Orlando in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th March 2005, 15:17
  5. Ds1307
    By miniman in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd February 2005, 08:29

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