Arduino, as a SCOPE

Also, you are drawing inside your serialEvent() function. Accessing your canvas should be done inside your draw(). In other words, move anything that touches the sketch to draw().

Kf

1 Like