I've looked over all the previous posts but none of them seem to work but the most useful one I can find is this one:
The code compiles fine but seems to stop with the console saying "Starting target CPU..." at the loop in "static void lfclk_config(void)" so I changed it so that the function is now:
static void lfclk_config(void)
{
NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos);
NRF_CLOCK->EVENTS_LFCLKSTARTED = 0;
NRF_CLOCK->TASKS_LFCLKSTART = 1;
// Wait for the low frequency clock to start
while (NRF_CLOCK->EVENTS_LFCLKSTARTED == 1) {}
NRF_CLOCK->EVENTS_LFCLKSTARTED = 0;
}
and now it will run to the end so it seems to work but I was wondering where do I see the outputted value of the voltage reading assuming what I changed works?