Fixed and tested digital potentiometer code.