GPIO pin that can be used as input or output and allows changing direction at runtime. The GpioPortPin works with any GpioPort interface, as for example implemented by the PortA, PortB etc. classes that represent the AVR's GPIO ports.
- Note
- The GpioPortPin forwards its functions directly to the associated GpioPort device. That means for example when getting a value while configured as output, it will return the state that was set. When it is required to get the level that is actually applied, the direction must be changed to input first. Depending on the external circuit it also may take some time until a reliable value can be read.