Is it safe to connect a GPIO output to a GPIO input??
For example: Set the GPIO input to GPIO.PUD_UP and connect it to GPIO output. Then when the output is HIGH, then the input is logic 1, and when the output is LOW then the input is logic 0.
Will it work?