Class GPIOInputLine

Hierarchy

  • GPIOLineReservation
    • GPIOInputLine

Constructors

  • Parameters

    • line: unknown
    • pollingInterval: undefined | number
    • releaseCallback: (() => void)
        • (): void
        • Returns void

    Returns GPIOInputLine

Properties

emitter: EventEmitter
interval?: Timer
line: unknown
releaseCallback: (() => void)

Type declaration

    • (): void
    • Returns void

Methods

  • Wait for a new line event. This method will poll the queue and propagate any previous events and wait for new one.

    Parameters

    • uSec: number

      maximum number of micro seconds to wait for an event

    • capture: boolean = false

      if true, the event will not be propagated to listeners

    Returns null | Event

Generated using TypeDoc