public class TouchSensor extends Object implements SensorValue
| Constructor and Description |
|---|
TouchSensor(SensorValue sensorValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAnalogValue()
Analog value returned by sensor, in the range of 0 to 1023.
|
int |
getStatusCode()
Six bit status code from the sensor, as a value from 0 to 63.
|
String |
toString() |
String |
touchStatus() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEngaged, isPassive, newSensorValuepublic TouchSensor(SensorValue sensorValue)
public int getAnalogValue()
SensorValuegetAnalogValue in interface SensorValuepublic int getStatusCode()
SensorValuegetStatusCode in interface SensorValuepublic String touchStatus()
Copyright © 2016–2025. All rights reserved.