pamoja for TypeScript - v0.2.0
    Preparing search index...

    Class GpioLine

    A GPIO line opened on a Linux board, through the kernel's GPIO character device.

    It drives and reads a line synchronously, so it goes straight under a Switch or a Contact. A line is held by one process at a time; close hands it back.

    Index
    • Hands the line back to the kernel. Calls after this throw.

      Returns void

    • Drives the line to a level. Throws when the kernel refuses the write, which an input line does, or the line is closed.

      Parameters

      Returns void

    • Opens a line as an input.

      Throws when the platform is not Linux, or the chip or the line cannot be opened.

      Parameters

      • chip: string
      • line: number

      Returns GpioLine

    • Opens a line as an output, driving initial from the moment it is taken.

      Throws when the platform is not Linux, or the chip or the line cannot be opened.

      Parameters

      • chip: string
      • line: number
      • initial: PinLevel

      Returns GpioLine