from IPM.core.Basic import Basic
from imputil import rgb
from imputil import imprgbcode

class LED(Basic):
    is_ElectronicComposent = True
    
    def __init__(self):
        self.Name = ""
        self.Pin = 0
        self.Cstate = False
        self.Stategraph
    def _record(self):
        pass
    def _srecord(self):
        pass
    def _get_state(self):
        return self.Cstate = False
    def _turn_on(self):
        pass
    def _turn_off(self):
        pass
    def _activate(self):
        pass
    def _desactivate(self):
        pass
    
class CLRLED(LED):
    def __init__(self):
        LED.__init__(self)
        self.CLR = rgb.RGB
    def _show_color(self, rgb):
        pass
    def _read_imprgbcode(self, imprgbcode):
        pass

from IPM.core.Basic import Basic
from imputil import rgb
from imputil import imprgbcode

class LED(Basic):
    is_ElectronicComposent = True
    
    def __init__(self):
        self.name = ""
        self.pin = 0
        self.currebtstate = False
        self.stategraph = []
        
    def record(self):
        pass
    
    def srecord(self):
        pass
    
    def get_state(self):
        return self.Cstate = False
    
    def activate(self):
        pass
    
    def desactivate(self):
        pass
    
class CLRLED(LED):
    
    def __init__(self):
        LED.__init__(self)
        self.CLR = rgb.RGB
        
    def _show_color(self, rgb):
        pass
    
    def _read_imprgbcode(self, imprgbcode):
        pass

Update led.py