Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles IO communication for a digital pin. Only allows read.

The pin should be given in the parameters in the field 'pin'.

Note: this class requires the mraa npm library to be installed on the board.

Hierarchy

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

parameters

  • get parameters(): number

Methods

read

  • read(callback: (value: any) => void): void

write

  • write(value: any): void

Generated using TypeDoc