Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Files | Functions

Touch Sensor
[Lego]

Files

file  LEGOTS-driver.h
 

Lego Touch Sensor driver.


Functions

bool TSreadState (tSensors link)
bool TSreadState (tMUXSensor muxsensor)

Detailed Description

Touch Sensor


Function Documentation

bool TSreadState ( tSensors  link )

Read the state of the touch sensor

Parameters:
linkthe Touch Sensor port number
Returns:
true if the sensor is pressed, false if it's not
Examples:
LEGOTS-SMUX-test1.c, and LEGOTS-test1.c.

Definition at line 51 of file LEGOTS-driver.h.

bool TSreadState ( tMUXSensor  muxsensor )

Read the state of the touch sensor

Parameters:
muxsensorthe SMUX sensor port number
Returns:
true if the sensor is pressed, false if it's not

Definition at line 68 of file LEGOTS-driver.h.