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

groundSensor()

Description

Read the ground sensors.

Syntax

groundSensor(sensor)

Parameter

sensor : the sensor number (1 to 3)

Return

Value: int (0 to 4095)

Exemples

# read ground sensor n°1
ground1= groundSensor(1)
# read ground sensor n°3
ground3= groundSensor(3)