Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GP2Y0A21YK0F

Hierarchy

Implements

Index

Constructors

constructor

  • Returns GP2Y0A21YK0F

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

  • Parameters

    Returns void

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

Static info

  • Returns ObnizPartsInfo

Object literals

displayIoNames

displayIoNames: object

gnd

gnd: string = "gnd"

signal

signal: string = "signal"

vcc

vcc: string = "vcc"

Generated using TypeDoc