Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

_unit

_unit: GP2Y0A21YK0FUnitType = "mm"

ad_signal

ad_signal: PeripheralAD

keys

keys: string[]

obniz

obniz: Obniz

params

params: any

requiredKeys

requiredKeys: string[]

Methods

_volt2distance

  • _volt2distance(val: number): number
  • Parameters

    • val: number

    Returns number

getWait

  • getWait(): Promise<number>
  • Returns Promise<number>

start

  • start(callback: (distance: number) => void): void
  • Parameters

    • callback: (distance: number) => void
        • (distance: number): void
        • Parameters

          • distance: number

          Returns void

    Returns void

unit

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

Static info

Object literals

displayIoNames

displayIoNames: object

gnd

gnd: string = "gnd"

signal

signal: string = "signal"

vcc

vcc: string = "vcc"

Generated using TypeDoc