public interface DigitalIO extends DigitalInput, DigitalOutput
DigitalInput and DigitalOutput.
The pin is dynamically configured as either an output or an input
depending on its usage. A call to read will configure it as an input,
a call to write will configure it as an output.
The pin can also be dynamically reconfigured - it is not stuck
in its configuration but will rather adjust to the requested operation.DigitalInput,
DigitalOutput| Modifier and Type | Method and Description |
|---|---|
boolean |
isInputActive()
Checks if the pin is currently used as an input.
|
boolean |
isOutputActive()
Checks if the pin is currently used as an output.
|
addInterruptListener, areInterruptsEnabled, clearInterruptListeners, disableInterrupts, enableInterrupts, fireInterruptEvent, getInterruptDebounceMs, getInterruptListeners, getInterruptTrigger, read, readDebounced, removeInterruptListener, setInterruptDebounceMs, setInterruptTriggerapplySignal, awaitBlinkingStopped, blinkTimes, getAppliedSignal, high, isBlinking, isHigh, isLow, low, startBlinking, startBlinking, stopBlinking, toggle, writeactivate, blockPin, getName, getPin, isActivatedFeature, isBlocking, isSetup, isTorndownOnShutdown, setTeardownOnShutdown, setup, teardown, unblockPinboolean isInputActive()
boolean isOutputActive()
Copyright © 2015 silverspoon.io. All rights reserved.