Digital Potentiometer Code

Note that this code writes a sine wave to the digi pot if you desire.