platypush/plugins/gpio/zeroborg/lib/__init__.py
def SetLed(self, state):
        """
SetLed(state)

Sets the current state of the LED, False for off, True for on
        """
        if state:
            level = COMMAND_VALUE_ON
        else:
            level = COMMAND_VALUE_OFF

        try:
            self.RawWrite(COMMAND_SET_LED, [level])
        except KeyboardInterrupt:
            raise
        except Exception as e:
            self.Print('Failed sending LED state!')
            self.Print(e)

SetLed(state)

Sets the current state of the LED, False for off, True for on
        
SetLed(state)
Sets the current state of the LED, False for off, True for on
SetLed ( state ) Sets the current state of the LED False for off True for on
def SetLed(self, state):
        if state:
            level = COMMAND_VALUE_ON
        else:
            level = COMMAND_VALUE_OFF
        try:
            self.RawWrite(COMMAND_SET_LED, [level])
        except KeyboardInterrupt:
            raise
        except Exception as e:
            self.Print('Failed sending LED state!')
            self.Print(e)
def SetLed ( self , state ) : if state : level = COMMAND_VALUE_ON else : level = COMMAND_VALUE_OFF try : self . RawWrite ( COMMAND_SET_LED , [ level ] ) except KeyboardInterrupt : raise except Exception as e : self . Print ( 'Failed sending LED state!' ) self . Print ( e )
SetLed(state)
Sets the current state of the LED, False for off, True for on
SetLed ( state ) Sets the current state of the LED False for off True for on
"""
SetLed(state)

Sets the current state of the LED, False for off, True for on
        """
self
state