Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PCA9685

Hierarchy

  • PCA9685

Implements

Index

Constructors

constructor

  • Returns PCA9685

Properties

_commands

_commands: any

_regs

_regs: any

address

address: any

chip

chip: any

id

id: any

io_srclr

io_srclr: any

keys

keys: string[]

params

params: any

pwmNum

pwmNum: any

pwms

pwms: PCA9685_PWM[] = []

requiredKeys

requiredKeys: string[]

state

state: any

value

value: any

Methods

_preparePWM

  • _preparePWM(num: any): void
  • Parameters

    • num: any

    Returns void

duty

  • duty(index: number, duty: number): void
  • Parameters

    • index: number
    • duty: number

    Returns void

freq

  • freq(frequency: number): void
  • Parameters

    • frequency: number

    Returns void

getPWM

  • Parameters

    • id: number

    Returns PCA9685_PWM

isValidPWM

  • isValidPWM(id: any): boolean
  • Parameters

    • id: any

    Returns boolean

pulse

  • pulse(index: number, pulse_width: number): void
  • Parameters

    • index: number
    • pulse_width: number

    Returns void

setEnable

  • setEnable(enable: boolean): void
  • Parameters

    • enable: boolean

    Returns void

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

writeSingleONOFF

  • writeSingleONOFF(index: number, on: number, off: number): void
  • Parameters

    • index: number
    • on: number
    • off: number

    Returns void

Static info

  • Returns ObnizPartsInfo

Generated using TypeDoc