Ejemplo n.º 1
0
    def __str__(self):
        long_string = RPiProcessFramework.__str__(self)
        long_string += RPiPiface.__str__(self)
        if self.output_lights != {}:
            long_string += "output_lights:\n"
            for key, value in self.output_lights.items():
                long_string += "{} = {}\n".format(key, value)
        else:
            long_string += "No output_lights information found!\n"
        if self.process_logic != {}:
            long_string += "process_logic:\n"
            for key, value in self.process_logic.items():
                long_string += "{} = {}\n".format(key, value)
        else:
            long_string += "No output_lights process logic information found!\n"

        return long_string
Ejemplo n.º 2
0
    def __str__(self):
        long_string = RPiProcessFramework.__str__(self)
        long_string += RPiPiface.__str__(self)
        if self.input_buttons != {}:
            long_string += "input_buttons:\n"
            for key, value in self.input_buttons.items():
                long_string += "{} = {}\n".format(key, value)
        else:
            long_string += "No input_buttons information found!\n"
        if self.process_consumers != {}:
            long_string += "process consumers:\n"
            for key, value in self.process_consumers.items():
                long_string += "{} = {}\n".format(key, value)
        else:
            long_string += "No input_buttons process consumers information found!\n"

        return long_string