Function rc_gpio_cleanup#

Function Documentation#

void rc_gpio_cleanup(int chip, int pin)#

closes the file descriptor for a pin

Not strictly necessary to run at the end of your program since linux will clean this up for you. However this is sometimes useful in the middle of a program when a pin is no longer needed.

Parameters:
  • chip[in] The chip number, /dev/gpiochipX

  • pin[in] The pin ID