Arduino sketch for oscilloscope.