pinmode_input_force

Function pinmode_input_force 

Source
pub unsafe fn pinmode_input_force(
    pin: (char, u8),
) -> Result<Pin<Input>, ProgError>
Expand description

Configures a pin to be a digital input. Disregard if pin is already configured.

Takes pin identifier A0, C5, etc. as an argument and returns a pin-struct for other functions. Panics if pin identifier is not a valid pin.

ยงSafety

This function can be used to get more than one pin-structs of a configured pin. Keep in mind that the registers of the pin will still be configured. This can easily break other functions for the pin.