bonescript patch: bidirectional pin i/o

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) {

Oops. As predicted, slight screwup in that diff. Here’s a context diff that hopefully makes things clearer:

*** index.js.original Sat Jan 1 02:28:08 2000
— index.js Sat Jan 1 01:27:38 2000