Interface GpioListener
public interface GpioListener
Receives edge events from a GpioPin that was opened as an input with
edge detection.
Events are delivered through Hardware.deliver(Runnable) (the event dispatch
thread on a client port), in the order the kernel reported them.
-
Method Summary
Modifier and TypeMethodDescriptionvoidedgeDetected(GpioPin pin, boolean rising, long timestampNanos) Called once per detected edge.
-
Method Details
-
edgeDetected
Called once per detected edge.
Parameters
-
pin: the pin the edge occurred on -
rising:truefor a low-to-high transition,falsefor high-to-low -
timestampNanos: the kernel's monotonic timestamp of the edge, in nanoseconds;0when the port has no timestamp
-
-