Name

gpio_direction_output — switches pin direction to output

Synopsis

#include <gpio.h>   
void gpio_direction_output (id,  
 value); 
int id;
bool value;
 

Arguments

id

the pin to switch direction

value

the initial value to drive on the pin

Description

GPIO pins can be used for input or output. This function make the specified pin an output pin. The pin state can the be changed using gpio_set_pin.