diff --git a/interface_handler.py b/interface_handler.py index 743b987..a3570e8 100644 --- a/interface_handler.py +++ b/interface_handler.py @@ -52,6 +52,7 @@ class Interface_handler: self.xml_reader = xml_reader self.init_gpio() + def init_gpio(self): """initialises the GPIO pins """ @@ -100,9 +101,9 @@ class Interface_handler: }) else: #throw error for protocols without write functionality raise ValueError("you can not read from device %s" % device_name) - return returnValues + def write(self, device_name:str, value): """writes a value to all the pins of a device