You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a problem with DueTimer: if I have an active timer the seriaUSB.readbytes() function freeze my Arduino DUE. I am not an expert on Arduino but I think there are a conflict inside theese two library (same timer?).
Thanks for help
BR,
David
The text was updated successfully, but these errors were encountered:
Try doing a delay with micros(), like: `while(micros() - start < DELAY);`
It might work, since the delay function depends on millis, and when you are
inside a timer callback, that timer stops counting, so it's like it's
froozen in time, that's why you get stuck.
However, micros() is different and doesn't depends on a timer
Em qui, 4 de abr de 2019 às 19:20, Micah Stevens <[email protected]>
escreveu:
Hi - yeah, I deleted my comment when I realized I was inside a timer interrupt when I was calling delay() - not a good idea. It was just debugging code anyway. Now it's working fine.
To @DavidTol - I'm using this library with SerialUSB currently and it seems stable for me, if that helps. I haven't had any problems other than my silly delay() mistake.
Hi,
I have a problem with DueTimer: if I have an active timer the seriaUSB.readbytes() function freeze my Arduino DUE. I am not an expert on Arduino but I think there are a conflict inside theese two library (same timer?).
Thanks for help
BR,
David
The text was updated successfully, but these errors were encountered: