|
NXT C++ Bluetooth Library | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sensor | +--Soundin sound.h
Class for NXT sound sensor
Fields inherited from class Sensor |
|
Constructor Summary | |
Sound( Sensor_port port, Connection* connection, Sound_mode sound_mode = DBA_MODE )
Constructor for the sound sensor (percent mode and DBA_MODE is default) |
|
~Sound()
|
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, |
Constructor Detail |
public Sound( Sensor_port port, Connection* connection, Sound_mode sound_mode = DBA_MODE );
port
- [which sensor port to use]
*connection
- [attach a connection]
sound_mode
- [set the sound mode to either DB_MODE or DBA_MODE (default is DBA_MODE)]public ~Sound();
Method Detail |
public string print();
|
NXT C++ Bluetooth Library | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |