|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tue.id.creapro.admoveo.Sensor
nl.tue.id.creapro.admoveo.DigitalSensor
public class DigitalSensor
This class models all digital sensors.
Constructor Summary | |
---|---|
DigitalSensor(Arduino arduino,
int pin)
Creates an instance of the digital sensor that is connected to a particular pin on the Arduino board. |
Method Summary | |
---|---|
void |
disable()
Disables the sensor. |
void |
enable()
Enables the sensor input. |
Methods inherited from class nl.tue.id.creapro.admoveo.Sensor |
---|
addSensorListener, getPin, getSensors, isEnabled, removeSensorListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nl.tue.id.creapro.arduino.ArduinoListener |
---|
analogAvailabe, digitalAvailable |
Constructor Detail |
---|
public DigitalSensor(Arduino arduino, int pin)
arduino
- the Arduino board.pin
- the pin to which this sensor is connected.Method Detail |
---|
public void disable()
SensorControl
disable
in interface SensorControl
disable
in class Sensor
public void enable()
SensorControl
enable
in interface SensorControl
enable
in class Sensor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |