|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SensorPort | |
---|---|
ch.aplu.android.nxt | Package to use the Lego NXT robot in direct mode in Android applications. |
Uses of SensorPort in ch.aplu.android.nxt |
---|
Fields in ch.aplu.android.nxt declared as SensorPort | |
---|---|
static SensorPort |
SensorPort.S1
Declaration used by a motor connected to port S1. |
static SensorPort |
SensorPort.S2
Declaration used by a motor connected to port S2. |
static SensorPort |
SensorPort.S3
Declaration used by a motor connected to port S3. |
static SensorPort |
SensorPort.S4
Declaration used by a motor connected to port S4. |
Methods in ch.aplu.android.nxt with parameters of type SensorPort | |
---|---|
void |
LightAdapter.bright(SensorPort port,
int level)
Empty method called when the light becomes brighter than the trigger level. |
void |
LightListener.bright(SensorPort port,
int level)
Called when the light becomes brighter than the trigger level. |
void |
LightAdapter.dark(SensorPort port,
int level)
Empty method called when the light becomes darker than the trigger level. |
void |
LightListener.dark(SensorPort port,
int level)
Called when the light becomes darker than the trigger level. |
void |
UltrasonicAdapter.far(SensorPort port,
int level)
Empty method called when the distance exceeds the trigger level. |
void |
UltrasonicListener.far(SensorPort port,
int level)
Called when the distance exceeds the trigger level. |
void |
SoundAdapter.loud(SensorPort port,
int level)
Empty method called when the sound becomes louder than the trigger level. |
void |
SoundListener.loud(SensorPort port,
int level)
Called when the sound becomes louder than the trigger level. |
void |
UltrasonicAdapter.near(SensorPort port,
int level)
Empty method called when the distance falls below the trigger level. |
void |
UltrasonicListener.near(SensorPort port,
int level)
Called when the distance falls below the trigger level. |
void |
TouchAdapter.pressed(SensorPort port)
Empty method called when the touch sensor is pressed. |
void |
TouchListener.pressed(SensorPort port)
Called when the touch sensor is pressed. |
void |
SoundAdapter.quiet(SensorPort port,
int level)
Empty method called when the sound becomes lower than the trigger level. |
void |
SoundListener.quiet(SensorPort port,
int level)
Called when the sound becomes lower than the trigger level. |
void |
TouchAdapter.released(SensorPort port)
Empty method called when the touch sensor is released. |
void |
TouchListener.released(SensorPort port)
Called when the touch sensor is released. |
void |
CompassAdapter.toLeft(SensorPort port,
double degrees)
Empty method called when the compass reading points to a direction at the left half-plane of the trigger direction. |
void |
CompassListener.toLeft(SensorPort port,
double degrees)
Called when the compass reading points to a direction at the left half-plane of the trigger direction. |
void |
CompassAdapter.toRight(SensorPort port,
double degrees)
Empty method called when the compass reading points to a direction at the right half-plane of the trigger direction. |
void |
CompassListener.toRight(SensorPort port,
double degrees)
Called when the compass reading points to a direction at the right half-plane of the trigger direction. |
Constructors in ch.aplu.android.nxt with parameters of type SensorPort | |
---|---|
CompassSensor(SensorPort port)
Creates a sensor instance connected to the given port at location with 50 Hz household current frequency (e.g. |
|
CompassSensor(SensorPort port,
boolean is50)
Creates a sensor instance connected to the given port at location with either 50 Hz or 60 Hz household current frequency. |
|
I2CSensor(SensorPort port,
byte sensorType)
Creates a sensor instance of given type connected to the given port. |
|
LightSensor(SensorPort port)
Creates a sensor instance connected to the given port. |
|
SoundSensor(SensorPort port)
Creates a sensor instance connected to the given port. |
|
TouchSensor(SensorPort port)
Creates a sensor instance connected to the given port. |
|
UltrasonicSensor(SensorPort port)
Creates a sensor instance connected to the given port. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |