1.0.1 • Published 1 year ago

@hiroshimac/ina260 v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@hiroshimac/ina260

Node.js module for reading values from I2C for bidirectional current and power monitor INA260.

Homepage

Prerequisites

  • node >=8.0.0

Install

npm install

Constructor

/**
   * Constructor for the power monitor INA260.
   * @param  {I2cBus} i2cBus  Instance of an opened i2c-bus.
   * @param  {number} address The address of the INA260 IC.
   */
  constructor (i2cBus: I2CBus, address: number) {
    this._i2cBus = i2cBus;
    this._address = address;
  }

Run tests

npm run test

Author

hiroshimac