0.1.25 Set Port B pins aslo to outputs by default
parent
c497e0fd27
commit
73de63a32d
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@uci/mcp",
|
"name": "@uci/mcp",
|
||||||
"main": "src",
|
"main": "src",
|
||||||
"version": "0.1.24",
|
"version": "0.1.25",
|
||||||
"description": "Classes and Helper Functions for using the MCP chip on I2C Bus",
|
"description": "Classes and Helper Functions for using the MCP chip on I2C Bus",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"relays": "node -r esm examples/relays",
|
"relays": "node -r esm examples/relays",
|
||||||
|
|
|
@ -30,6 +30,7 @@ class MCP230XX extends Device {
|
||||||
throw `${res.error} at address ${this.address}/${this.address.toString(16)}`
|
throw `${res.error} at address ${this.address}/${this.address.toString(16)}`
|
||||||
}
|
}
|
||||||
await this.commands.pin.cfg({pins:'all'}) //pins are outputs by default
|
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
|
} // end of MCP230XX Class
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue