# Node-red-contrib-mcp23017chip

**URL:** <https://discourse.nodered.org/t/node-red-contrib-mcp23017chip/37999>\
**Category:** General\
**Created:** [25 December 2020 08:30 UTC](https://discourse.nodered.org/t/node-red-contrib-mcp23017chip/37999 "2020-12-25T08:30:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [25 December 2020 09:16 UTC](https://discourse.nodered.org/t/node-red-contrib-mcp23017chip/37999/3 "2020-12-25T09:16:56Z")

</div>

@zenofmud  
Thanks 🙂 found it here:  
`/home/openhabian/.node-red/node_modules/node-red-contrib-mcp23017chip`

* * *

Also found [this...](https://discourse.nodered.org/t/after-upgrade-failed-to-install-node-red-contrib-mcp23017chip/35492/6) :

> changing `"i2c-bus": "~1.2.2"` to `"i2c-bus": "~5.2.1"` and installing it locally via `npm i /path/to/mcp23017chip` did the thing. All is working good now

It's at the `package.json` file 31. line.

* * *

Although I'm not sure if this part is a must?  
... in the `.../.node-red/setting.js` file add the line as follows:

```auto
functionGlobalContext: {
i2c:require('i2c-bus')
// os:require('os'),
// jfive:require("johnny-five"),
// j5board:require("johnny-five").Board({repl:false})
},

```

# How do I apply changes?

- enough to restart NR?

---

_[View the full topic](https://discourse.nodered.org/t/node-red-contrib-mcp23017chip/37999)._
