I'm learning embedded in school to program microcontrollers using C, i was wondering what the actual difference was between setting a pin on output vs input because i can't wrap my head around it, even though it sounds logical. I know I will be using the output register to send voltage to the pins but what will the input be used for then with an example? I guess it will be used to read output from the pins?