Arduino Portenta H7 - DAC

Hello together,

I would like to use the DAC on my Portenta H7 with the following code:

import time, machine, pyb
dac = pyb.DAC(pyb.Pin(‘A6’))

dac.write(4095)

Unfortunatly a errror message appear: ValueError: DAC(1) doesn’t exist.
What would be the correct way, to enable the DAC?

Thank you.

It will be available via any of the pins that say DAC1 here: ABX00042-full-pinout.pdf