How to output a voltage via onboard DAC?

the Arduino world is rather new for me. For a measurement project I like to show the result of my measurements on an oscilloscope via the onboard DAC on pin A0.
The "analogWave.h" library of the R4 Minima DAC Guide tutorial works well, but seems unsuitable to simply output a voltage.
My task can be simplified to the following basic task:

  1. read the measured voltage on an analog pin and do some calculations
  2. output the result as a true analog voltage through the onboard DAC.

I didn't find solutions in documentation, tutorials and fora.
Can someone help me perform this seemingly simple task?
Thank you very much!

analogWrite?

Thanks for yr reply. However, analogWrite gives an PWM output, not a true analog voltage generated by the DAC. Unfortunately unsuitable for my application.

The official examples demonstrate this DAC facility as a sine wave source.
There is no demonstration of any application of various DC levels (e.g. a steady 1.1V).

Arduino UNO R4 Minima Digital-to-Analog Converter (DAC) | Arduino Documentation

Researching further, there is one DAC output - at "A0".
When you analogWrite to it, you get your steady-state DC level.
Page Down to "DAC" --
Arduino UNO R4 WiFi Cheat Sheet | Arduino Documentation

on A0 analogWrite does DAC not PWM

Yes indeed. Obviously I overlooked something.
Attached a very simple working sketch to generate a calculated sine wave or saw tooth.
Thanks for helping, you put me in the right direction.
Problem solved!

image