public abstract class AbstractAnalogInput extends AbstractPinFeature implements AnalogInput
| Constructor and Description |
|---|
AbstractAnalogInput(Pin pin) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
void |
startMonitor(int periodMicroSeconds,
ThresholdListener listener)
Start a monitor on the analog input.
|
void |
stopMonitor()
Stops the monitor that currently listens on the pin.
|
activate, blockPin, getPin, isActivatedFeature, isBlocking, isSetup, isTorndownOnShutdown, setTeardownOnShutdown, setup, setupImpl, teardown, teardownImpl, toString, unblockPinclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitread, sample, sample, sampleAsync, sampleAsyncactivate, blockPin, getPin, isActivatedFeature, isBlocking, isSetup, isTorndownOnShutdown, setTeardownOnShutdown, setup, teardown, unblockPinpublic AbstractAnalogInput(Pin pin)
public String getName()
getName in interface PinFeaturepublic void startMonitor(int periodMicroSeconds,
ThresholdListener listener)
AnalogInputthresholdReached
method will be called.startMonitor in interface AnalogInputperiodMicroSeconds - the period micro secondslistener - the listenerpublic void stopMonitor()
AnalogInputstopMonitor in interface AnalogInputCopyright © 2015 silverspoon.io. All rights reserved.