Name

gpio_direction_input — switches pin direction to input

Synopsis

#include <gpio.h>   
void gpio_direction_input (id); 
int id;
 

Arguments

id

the pin to switch direction

Description

GPIO pins can be used for input or output. This function makes the specified pin an input pin. The pin state can then be read using gpio_get_pin.