Code from trying to make graphics using the XY mode of an oscilloscope.