Just in case anyone else comes up with the same issue I'm posting a list of
pins which can be used without doing anything special, the pins commented
out cannot be used without some (yet to discovered) incantation, mostly see
to be assigned to a LCD cape??
//CON 1
b.pinMode('P9_13', b.INPUT); // GPIO0-31
b.pinMode('P9_11', b.INPUT); // GPIO0-30
b.pinMode('P9_12', b.INPUT); // GPIO1-28
b.pinMode('P9_16', b.INPUT); // GPIO1-19
b.pinMode('P9_14', b.INPUT); // GPIO1-18
b.pinMode('P9_15', b.INPUT); // GPIO1-16
//CON 2
b.pinMode('P9_30', b.INPUT); // GPIO3-16
// b.pinMode('P9_28', b.INPUT); // GPIO3-17
b.pinMode('P9_21', b.INPUT); // GPIO0-3
b.pinMode('P9_26', b.INPUT); // GPIO0-14
b.pinMode('P9_22', b.INPUT); // GPIO0-2
b.pinMode('P9_23', b.INPUT); // GPIO1-17
//CON 3
// b.pinMode('P9_31', b.INPUT); // GPIO3-14
// b.pinMode('P9_29', b.INPUT); // GPIO3-15
b.pinMode('P9_41', b.INPUT); // GPIO0-20
// b.pinMode('P8_33', b.INPUT); // GPIO0-9
b.pinMode('P9_42', b.INPUT); // GPIO0-7
// b.pinMode('P8_31', b.INPUT); // GPIO0-10
//CON 4
// b.pinMode('P8_41', b.INPUT); // GPIO2-10
// b.pinMode('P8_43', b.INPUT); // GPIO2-8
// b.pinMode('P8_35', b.INPUT); // GPIO0-8
// b.pinMode('P8_45', b.INPUT); // GPIO2-6
// b.pinMode('P8_37', b.INPUT); // GPIO2-14
// b.pinMode('P8_39', b.INPUT); // GPIO2-12
//CON 5
b.pinMode('P8_7', b.INPUT); // GPIO2-2
b.pinMode('P8_8', b.INPUT); // GPIO2-3
b.pinMode('P8_9', b.INPUT); // GPIO2-5
b.pinMode('P8_10', b.INPUT); // GPIO2-4
b.pinMode('P8_11', b.INPUT); // GPIO1-13
b.pinMode('P8_12', b.INPUT); // GPIO1-12
//CON 6
b.pinMode('P8_18', b.INPUT); // GPIO2-1
b.pinMode('P8_17', b.INPUT); // GPIO0-27
b.pinMode('P8_13', b.INPUT); // GPIO0-23
b.pinMode('P8_16', b.INPUT); // GPIO1-14
b.pinMode('P8_14', b.INPUT); // GPIO0-26
b.pinMode('P8_15', b.INPUT); // GPIO1-15
//CON 7
// b.pinMode('P8_27', b.INPUT); // GPIO2-22
//** b.pinMode('P8_19', b.INPUT); // GPIO0-22 **OK used for output
for test
// b.pinMode('P8_29', b.INPUT); // GPIO2-23
// b.pinMode('P8_34', b.INPUT); // GPIO2-17
// b.pinMode('P8_30', b.INPUT); // GPIO2-25
// b.pinMode('P8_32', b.INPUT); // GPIO0-11
//CON 8
// b.pinMode('P8_46', b.INPUT); // GPIO2-7
// b.pinMode('P8_44', b.INPUT); // GPIO2-9
// b.pinMode('P8_36', b.INPUT); // GPIO2-16
// b.pinMode('P8_42', b.INPUT); // GPIO2-11
// b.pinMode('P8_38', b.INPUT); // GPIO2-15
// b.pinMode('P8_40', b.INPUT); // GPIO2-13
hmm does the code button work?
On Monday, February 2, 2015 at 7:10:24 PM UTC+11, JS-BBB wrote:
>
> OK trying to post again, this morning's post seemed to have gone nowhere.
>
> I'm trying out the push button/led example using node.js and Bonescripts,
> successfully modified it to use 6 I/O pins ORed together so that if any pin
> is active the LED comes on.
>
> The issue I'm having is that not all pins seem to be accessible and the
> script fail. ie P8_3, P8_40 and others.
>
> Is this to do with the default power up boot mode which makes some pins
> not user accessible? Do we know which mode the board wakes up in
> (MODE0-MODE7)?
>
> Masochistically I'm using nano as the editor not knowing better and I feel
> I have gone back in time 30 years. :-) But it makes me feel young(er )
> again.
>
>
--
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/d/optout.