Hello,
EDIT: I have posted on the issues page of the original repo, on a thread where someone was asking for a similar feature years ago, but there has been no response.
Im using a package that works exactly the way I want.
Slight problem is that it hard codes its i2c-bus to a value of 1.
I have a new hardware board, a Beaglebone Green, and its i2cBus is 2.
As an initial test, I modified the oled.js on my one device, manually, and changed the 1 to a 2, restarted NodeRed and vwala it worked!
I figured I could just fork the library, make the change in the new fork (or better yet paramaterize it) and then in my build, just call MY new fork for the npm install.
Alas this doesnt work. My new fork loads, it shows in node-red palete manager, but it wont write to the new value.
Is there something about a fork, or maybe loading NPM from a github repo that breaks things that I am not aware of? I figured this would be an extremely simple thing, changing a 1 to a 2.