got the digipot code working.