gpio_set_value

The interface has the following parameters.
  • Synopsis:
    void gpio_set_value(unsigned gpio, int value)
  • Description: The function is used to set the level to a target GPIO interface. The level can be used to alter the GPIO from an output to an output.
    Note: The GPIO has to be an output, otherwise, this function may have no effect.
  • Parameter:
    • gpio: The GPIO index number.
    • value: The expected level: 0 as low level, 1 as high level.
  • Return: None.