<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#3333FF" bgcolor="#FFFFCC">
    <div class="moz-cite-prefix">I concur.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 1/26/21 1:38 PM, Carl Nobile via
      TriEmbed wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGQqDQKJxWQQMP+zH+z99DvYfjTYgurzMMu52GHofzcT+6T=Ag@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">This one may be better.
        <div><a
            href="https://deepbluembedded.com/why-use-timer-instead-of-delay/"
            moz-do-not-send="true">https://deepbluembedded.com/why-use-timer-instead-of-delay/</a><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Jan 26, 2021 at 1:35
          PM Carl Nobile <<a href="mailto:carl.nobile@gmail.com"
            moz-do-not-send="true">carl.nobile@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">John,
            <div><br>
            </div>
            <div>So I assume you need a delay there, so what you can do
              is use an interrupt in your delay. Then the delay is
              managed between all other interrupts.</div>
            <div><br>
            </div>
            <div>I found this simple example of using an interrupt as a
              delay. It' uses an Arduino, but the concept may help.</div>
            <div><a
                href="https://thekurks.net/blog/2016/4/25/using-interrupts"
                target="_blank" moz-do-not-send="true">https://thekurks.net/blog/2016/4/25/using-interrupts</a><br>
            </div>
            <div><br>
            </div>
            <div>~Carl</div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Tue, Jan 26, 2021 at
              1:22 PM John Vaughters via TriEmbed <<a
                href="mailto:triembed@triembed.org" target="_blank"
                moz-do-not-send="true">triembed@triembed.org</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">Carl,<br>
              <br>
              Right, makes sense, I really use delays sparingly and go
              for millis() But this was a copy-paste task. and it was
              only 25ms of delay, so I let it slide. And considering I
              am probably only using like 10% of computing power I
              thought I could let it slide. And I could have if it
              wasn't for you meddling programmers. `,~) <br>
              <br>
              Normally I only use a short delay at the end of the loop
              if the loop is moving to fast, or for comm purposes. so
              definitely out of norm for me. I still like the original
              work around though. I would use it again if in a pinch.<br>
              <br>
              Good discussion in any case and now I have a better grasp
              on Ticker. <br>
              <br>
              Makes one of my Dad's best advice quotes ring true:<br>
              <br>
              When all else fails, read the instructions ~ Dad<br>
              <br>
              Good Stuff,<br>
              <br>
              John Vaughters<br>
              <br>
              <br>
              On Tuesday, January 26, 2021, 12:51:13 PM EST, Carl Nobile
              <<a href="mailto:carl.nobile@gmail.com" target="_blank"
                moz-do-not-send="true">carl.nobile@gmail.com</a>>
              wrote: <br>
              <br>
              <blockquote type="cite">Yeah, delays could mess with
                interrupts even if they are not in the interrupt itself.
                Actually what happens is the interrupt messes with the
                delay. If the interrupt happens in the middle of the
                delay the delay will be longer than what you set it at.<br>
                Almost all processors will be runningĀ interruptsĀ even if
                you're not using any.<br>
                There are other people in the group that have more
                experience with this than I, so just my two cents.<br>
                <br>
                ~Carl<br>
              </blockquote>
              <br>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <p><br>
    </p>
    <pre class="moz-signature" cols="80">-- 
Scott G. Hall
Raleigh, NC, USA
<a class="moz-txt-link-abbreviated" href="mailto:ScottGHall1@GMail.Com">ScottGHall1@GMail.Com</a>

<i>Although kindness is rarely a job, no matter what you do it's always an option.</i>
</pre>
  </body>
</html>