Home » Programming (API) » Programming the MRPi1 with python » led() – API python

led()

Description

Set on or off leds.

Syntax

led(id, state)

Parameters

id : the number of the led 1,2 or 3.

state : on(1) or off(0)

Returns

None

Exemples

# Set on led 1
led(1, 1)
# Set off led 3
led(3, 0)