Overview   Project   Class   Tree   Index 
NXT C++ Bluetooth Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

NXT C++ Bluetooth Library
Class Touch

Sensor
   |
   +--Touch

   in touch.h

class Touch
extends Sensor

Class for NXT and RCX touch sensor


 
Fields inherited from class Sensor
has_init, connection, sensor_type, sensor_mode, sensor_port, raw_AD_value, normalized_AD_value, scaled_value, calibrated_value
 
Constructor Summary
Touch( Sensor_port port, Connection* connection )
          Constructor for the touch sensor (default mode is bool)
~Touch()
          
 
Method Summary
 string print()
          Get the sensor reading as a string (init method will be called if the sensor has not been initialized)
   
Methods inherited from class Sensor
init, read, read, print, set, get_port, get_mode, set_type_and_mode, get_sensor_value, read_mode, read_raw, read_normalized, get_type, reset, get_i2c_address
 

Constructor Detail

Touch

public Touch( Sensor_port port, Connection* connection );
Constructor for the touch sensor (default mode is bool)
Parameters:
port - [which sensor port to use]
*connection - [attach a connection]

~Touch

public ~Touch();


Method Detail

print

public string print();
Get the sensor reading as a string (init method will be called if the sensor has not been initialized)
Returns:
either "Pressed" or "Released"

 Overview   Project   Class   Tree   Index 
NXT C++ Bluetooth Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD