I want to get the value of battery voltage using pin number with battery voltage monitoring function in nRF52840.
What I tried was to use the function "nrf_gpio_pin_read()" and put the pin number as an argument. The result was that the value of "1" kept coming up.
I'm looking for a function that outputs the voltage value itself using the pin number, but I can't seem to find it.
If you know of such a function, could you please let me know? Since I am a complete beginner in nRF, I may have said something unclear due to my lack of prior knowledge, so I would appreciate it if you could point it out to me.
Thank you very much.
Translated with www.DeepL.com/Translator (free version)