示例#1
0
    def __init__(self):
        self.ledFrein = Output(Pin.led)

        self.sensors = [Pin.pedaleFrein]
        Activity.__init__(self, False)
示例#2
0
    def __init__(self) :
        self.ledFrein = Output(Pin.led)

    
        self.sensors = [Pin.pedaleFrein]
        Activity.__init__(self, False)
示例#3
0
 def __init__(self) :
     self.state = False
     self.led = Output(Pin.led)
     self.sensors = [Pin.bouton]
     Activity.__init__(self, True)