Dac code works naow
Added support for adc