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  lego-touch.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:
lego-touch-SMUX-test1.c, and lego-touch-test1.c.

Definition at line 52 of file lego-touch.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 69 of file lego-touch.h.