From 73de63a32d73ccb7aade49d65c99c644a3844eb5 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Fri, 22 Mar 2019 18:03:16 -0700 Subject: [PATCH] 0.1.25 Set Port B pins aslo to outputs by default --- package.json | 2 +- src/mcp230xx.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 184965f..9755236 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@uci/mcp", "main": "src", - "version": "0.1.24", + "version": "0.1.25", "description": "Classes and Helper Functions for using the MCP chip on I2C Bus", "scripts": { "relays": "node -r esm examples/relays", diff --git a/src/mcp230xx.js b/src/mcp230xx.js index 6765365..75db54c 100644 --- a/src/mcp230xx.js +++ b/src/mcp230xx.js @@ -30,6 +30,7 @@ class MCP230XX extends Device { throw `${res.error} at address ${this.address}/${this.address.toString(16)}` } await this.commands.pin.cfg({pins:'all'}) //pins are outputs by default + if (this.chip17) await this.commands.pin.cfg({pins:'all', port:'B'}) } } // end of MCP230XX Class