def __init__(self, address, port): IPSerialBridge.__init__(self, address, port) self.internal_status = {} self.internal_current = {} for ch in self.channelIs: self.internal_status[ch] = 0#self.status(ch) self.internal_current[ch] = 0#self.current(ch)
def __init__(self, address, port): IPSerialBridge.__init__(self, address, port) self.internal_status = {} self.internal_current = {} for ch in self.channelIs: self.internal_status[ch] = 0 #self.status(ch) self.internal_current[ch] = 0 #self.current(ch)
def __init__(self, address, port): IPSerialBridge.__init__(self, address, port) self.read = self.old_read self.send = self.old_send
def __del__(self): logging.debug("Shutting down LEDS") for c in range(0, self.n_channels): self.turn_off(c) IPSerialBridge.__del__(self)
def connect(self): IPSerialBridge.connect(self) for ch in self.channelIs: self.internal_status[ch] = self.status(ch) self.internal_current[ch] = self.current(ch)