[][src]Type Definition atmega_hal::port::Pin

type Pin<MODE, PIN = Dynamic> = Pin<MODE, PIN>;

Type-alias for a pin type which can represent any concrete pin.

Sometimes it is easier to handle pins if they are all of the same type. By default, each pin gets its own distinct type in avr-hal, but by downgrading, you can cast them into this "dynamic" type. Do note, however, that using this dynamic type has a runtime cost.