dac now outputs triangle wave