Having trouble using Xiao's DAC

Thanks for the reply. Such a silly mistake just when I was getting confident in my Arduino skills.