gpio: remove get_gpio_out_from_config method

The confighelper object now can setup  gpios directly.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-11-21 06:26:09 -05:00
parent 0e4e3383e3
commit 97e27661d7
1 changed files with 0 additions and 11 deletions

View File

@ -34,17 +34,6 @@ class GpioFactory:
self.chips[chip_name] = chip self.chips[chip_name] = chip
return chip return chip
def get_gpio_out_from_config(self,
config: ConfigHelper,
option: str = "pin",
initial_value: int = 0
) -> GpioOutputPin:
pin_name = config.get(option)
try:
return self.setup_gpio_out(pin_name, initial_value)
except Exception as e:
raise config.error(str(e)) from None
def setup_gpio_out(self, def setup_gpio_out(self,
pin_name: str, pin_name: str,
initial_value: int = 0 initial_value: int = 0