Options
All
  • Public
  • Public/Protected
  • All
Menu

The base class for sensor hardware-level IO control. Some IO classes are already defined:

  • Aio: Handles IO for an analog pin using MRAA (input only).
  • InputGpio: Handles IO for a digital pin using MRAA (input only).
  • OuputGpio: Handles IO for a digital pin using MRAA (output only).
  • MockSensorIo: Mocks the functionality with a cached value.

Applications can also define their own SensorIo classes.

Hierarchy

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new SensorIo(_parameters?: number): SensorIo

Accessors

parameters

  • get parameters(): number

Methods

Abstract read

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

Abstract write

  • write(value: any): any

Generated using TypeDoc