This test code shows how to configure ADC1 and read the voltage connected to GPIO pin.
ADC1_CHANNEL_6: GPIO34, voltage range [0V..1.1V], the data range [0..4095]
Please connect the test voltage to GPIO34