serial port - SerialEvent() interrupt with arduino -



serial port - SerialEvent() interrupt with arduino -

i have function foo(a,b,c,) runs long time in every void loop() execution (some seconds several minutes depending on a,b,c) , blocks arduino quite time, although function idle quite time (delay(x)). additionally, send arduino configuration commands via serial interface, are, of course, not processed while foo running.

is there way process these input interruption-based, serialevent() interrupt? not necessary loop continues after processing input, there no need halt & resume running task.

another alternative rewrite chunk of code, in add-on making quite bit uglier, avoid step if in way possible.

thanks lot in advance.

serial-port arduino interrupt

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -