0.1.25 Set Port B pins aslo to outputs by default

master
David Kebler 2019-03-22 18:03:16 -07:00
parent c497e0fd27
commit 73de63a32d
2 changed files with 2 additions and 1 deletions

View File

@ -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",

View File

@ -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