first dirty but working version of DAC control through SPI