I Dried to start on base of ADC sample and using another pin as ADC pin
i fond a tree example
with
Using ain0 it worked.
Unfortunately id didnt work on ain2
i found out that
did not lead to get correct readings on ain2
May you can check Attempting to get ADC to work if the example tree fo nRF5340-DK is correct
May it worked because the definition of
and
resulting in the same value
but
and
are different
after changein to "NRF_SAADC_AIN2" it worked.