code: def set_gpio_pin(self, pin_number, setting, dest_addr_long=None):
          
          assert setting in const.GPIO_SETTINGS.values()
          self._send_and_wait(
              command=const.IO_PIN_COMMANDS[pin_number],
              parameter=setting.value,
              dest_addr_long=dest_addr_long)
docs: Set a gpio pin setting.