Function on

  • Set event handler for the given pin.

    Parameters

    • event: "rising" | "falling" | "change"

      The event to handle.

    • pin: number

      The pin to handle the event for.

    • callback: (() => void)

      The callback to call when the event occurs.

        • (): void
        • Returns void

    Returns void

Generated using TypeDoc