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

switch()

Description

Read the switch state.

Syntax

switch()

Parameters

None.

Returns

The switch state 0 or 1.

Exemple

from mrpiZ_lib import *
import time

state = switch()

print state