def __init__(self, periphery_controller, index, name, parameter_type, precision, minimum, maximum): Hardware.__init__(self, periphery_controller, index, name, '') self.parameter_type = parameter_type self.precision = precision self.minimum = minimum self.maximum = maximum self.last_measured = datetime.now()
def __init__(self, periphery_controller, index, name, device_type, default_value): Hardware.__init__(self, periphery_controller, index, name, '') self.device_type = device_type self.default_value = default_value