Menu

millis() wrong result

2022-01-24
2022-01-28
<< < 1 2 (Page 2 of 2)
  • Anobium

    Anobium - 2022-01-28

    Do it as Bill shows. Assign millis to long variable and then compare that var to previous value.

     
    • stan cartwright

      stan cartwright - 2022-01-28

      I did that as I posted and works. So use long for comparison to millis() ?
      I did some millis() avr testing for Chris Roper , wish he'd developed his do-every, it was working for avr.
      Int events are useful but mysterious.
      used them for stepper motors and r/c servos. nice to have the freqcalc link.
      I think my scope is ok at this freq but I found its spec inflated.
      I like interrupts. Do-every would set it up in a command not lots of parameters but only 1ms resolution.
      I think millis function works fine.

       
  • Anobium

    Anobium - 2022-01-28

    I am assuming all is good with millis()

    I will publish a new release over the weekend. Not a test release but a full release .

    Yipee

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.