Shop OBEX P1 Docs P2 Docs Learn Events
RTC for Propeller - Page 2 — Parallax Forums

RTC for Propeller

2»

Comments

  • Dave HeinDave Hein Posts: 6,347
    edited 2015-05-12 14:06
    Yes, you will need to loop at least once per second to ensure that you don't miss the event time.

    EDIT: BTW, when I commented earlier that it should have printed T1 I must have been looking at Ray's version of the code. The original code did not print T1.
  • DiscoveryDiscovery Posts: 606
    edited 2015-05-12 14:25
    Dave...that was the problem.

    I put the Get_Time call into a loop to sample the RTC and compare T1 to s. No match.

    I duplicated Get_Time and modified it to Get_Time2 but removed the print line of code.

    This allowed the loop to run fast enough to make the match.

    Thank you very much...I have it now.

    Discovery
Sign In or Register to comment.