def disable()

in status_led_pkg/status_led_pkg/gpio_module.py [0:0]


    def disable(self):
        """Disable the GPIO port by unexporting the control of a GPIO to userspace.

        Returns:
            bool: True if successful else False.
        """
        try:
            with open(f"{self.base_path}/unexport", "w") as unexport:
                unexport.write(str(self.gpio))
        except Exception as ex:
            self.logger.error("Error while writing to unexport for the GPIO port "
                              f"{self.gpio}: {ex}")
            return False

        return True