-a- getrecord
yes i moved the data string processing from the serial event to draw,
that only works when the serial event sets
getrecord = true;
the draw executes that part and set it to false.
if for that structure is a time limit i not know,
more arduino lines per second as you have FPS could skip lines or even fail,
the advantage is the errors from that processing ( and the messages )
are more easy as when it happens inside serial event.
( but you can move it back )
-b- diagp
is a boolean switch “diagnostic printing”
what you can disable when all works fine.
-c- recs
each time a new line comes from arduino i make a new
vertical line on the canvas ( oscilloscope style )
first yellow ( background ) then
the colored points for each measurement
at the current cursor x position
add i make a white line at x+1 to show that cursor