1.0.4 • Published 6 years ago

i2c-mcp4725 v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

i2c-mcp4725

Node.js library to communicate with MCP4725 over I2C

Ported version of Adafruit's Python library (https://github.com/adafruit/Adafruit_Python_MCP4725/)

MCP4725 Datasheet: https://www.sparkfun.com/datasheets/BreakoutBoards/MCP4725.pdf

Example

const mcp4725 = require('i2c-mcp4725');

(async () => {
    // sets the voltage to 50% of VDD
    await mcp4725.setVoltage(2048);

    // sets the voltage to 100% of VDD
    await mcp4725.setVoltage(4095);

    // sets the voltage to 0% of VDD
    await mcp4725.setVoltage(0);
})();
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago