public interface SensorValue
InputId
.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.
|
default boolean |
isEngaged()
bit 4 looks like 0 for engaged, 1 for released.
|
default boolean |
isPassive()
bit 3 looks like 0 for passive, 1 for active sensors.
|
static SensorValue |
newSensorValue(byte high,
byte low) |
static SensorValue newSensorValue(byte high, byte low)
int getAnalogValue()
int getStatusCode()
default boolean isPassive()
default boolean isEngaged()
Copyright © 2016–2023. All rights reserved.