Module: caf_rpi_gpio/plug_iot_gpio

Manage GPIO pins of a Raspberry PI.

Properties:

 {gpiomem: true, mapping: string, allowMock: boolean,
  mockRootDir: string}

where:

  • gpiomem: enables non-privileged access to GPIO pins for recent Linux kernels.
  • mapping: refers to the pin numbering scheme being physical (P01-P40 header layout) or gpio (Broadcomm GPIOxx naming). See https://github.com/jperkin/node-rpio for details.
  • allowMock: enables simulating GPIO pins with files on a temp directory.
  • mockRootDir: default root directory for these files.
Source:

Extends