Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Hx711

Hierarchy

  • Hx711

Implements

Index

Constructors

constructor

  • Returns Hx711

Properties

_offset

_offset: any

_scale

_scale: any

dout

keys

keys: string[]

obniz

obniz: Obniz

params

params: any

requiredKeys

requiredKeys: string[]

sck

spi

Methods

bit

  • bit(a: number, n: number): 0 | 1
  • Parameters

    • a: number
    • n: number

    Returns 0 | 1

doubleBit2singleBit

  • doubleBit2singleBit(a: number, b: number): number
  • Parameters

    • a: number
    • b: number

    Returns number

getValueWait

  • getValueWait(times: number | any): Promise<number>
  • Parameters

    • times: number | any

    Returns Promise<number>

powerDown

  • powerDown(): void
  • Returns void

powerUp

  • powerUp(): void
  • Returns void

readAverageWait

  • readAverageWait(times: any): Promise<number>
  • Parameters

    • times: any

    Returns Promise<number>

readWait

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

setOffset

  • setOffset(offset: any): void
  • Parameters

    • offset: any

    Returns void

setScale

  • setScale(scale: any): void
  • Parameters

    • scale: any

    Returns void

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

zeroAdjustWait

  • zeroAdjustWait(times: number | any): Promise<void>
  • Parameters

    • times: number | any

    Returns Promise<void>

Static info

  • Returns ObnizPartsInfo

Generated using TypeDoc