This example muxes two pins as GPIO and enables one GPIO (logical high). The other GPIO is then read in the main loop. One can use a jumper to bridge the two GPIOs to see that also reading succeeds.