If anyone is interested, it wasn't working because of the 10-bit resolution. Using analogWriteResolution(12) and dacOutput = 4096 works!
If anyone is interested, it wasn't working because of the 10-bit resolution. Using analogWriteResolution(12) and dacOutput = 4096 works!