def set()

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


    def set(self, Value):
        """Helper method to write the value attribute of the GPIO port.
        """
        try:
            with open(self.value_path, "w") as value:
                value.write(str(Value))
        except Exception as ex:
            self.logger.error("Error while setting the value for the GPIO port "
                              f"{self.gpio}: {ex}")