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) {
---
>         if(!gpio[n] || !gpio[n].path || !gpio[n].direction || 
gpio[n].direction != direction) {
>             gpio[n].direction = direction;

Tested on the 2013.09.04 distribution. Hope this helps someone out..

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to