Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HCSR04

Hierarchy

  • HCSR04

Implements

Index

Constructors

constructor

  • Returns HCSR04

Properties

_unit

_unit: HCSR04UnitType = "mm"

echo

echo: number

keys

keys: string[]

obniz

obniz: Obniz

params

params: any

requiredKeys

requiredKeys: string[]

reset_alltime

reset_alltime: boolean = false

temp

temp: number = 15

trigger

trigger: number

vccIO

Methods

measure

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

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

          • distance: number

          Returns void

    Returns void

measureWait

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

unit

  • Parameters

    Returns void

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

Static info

  • Returns ObnizPartsInfo

Generated using TypeDoc