Hi Jason and group,
New here, so apologies in advance for newbie screwups.
Here’s a bonescript patch that allows bi-directional i/o on a pin (i.e. the ability to b.pinMode(pin, b.INPUT) followed later on by a b.OUTPUT to flip the i/o direction)
in /usr/lib/node_modules/bonescript:
diff index.js.original index.js
267c267,268
< if(!gpio[n] || !gpio[n].path) {