Left out some steps and missed the part about needing inputs - sorry.

The first section in the wiki is still all you need.  Set the direction to "in" then use echo to verify that you're reading them.

Greg



From: Nick Starzicki <nick2501@gmail.com>
To: General mailing list for gumstix users. <gumstix-users@lists.sourceforge.net>
Sent: Tuesday, December 6, 2011 11:14 AM
Subject: Re: [Gumstix-users] GPIO

Hi
 
Thanks for the link
 
Dave, I have gone over that link, but it seems a bit complicated. I mean that I am not sure exactly what I need from there to accomplish what I want.
 
All I need is to be able to read inputs to two GPIO's, which represent some readings of a tilt sensor. If one of the GPIO's is at '1' then the gumstix is tilted one way, and if the other GPIO is '1' then the gumstix is tilted the other way. Of coarse if both are '0' then the gumstix is not tilted.
 
Since I have never tried using the GPIO's before, I don't know which ones are to be used as inputs, how to refer to them, and what code to type to actually get their readings.
 
If you have any sample code that could help, that would be great. I a using a summit board if you need to know which pins are available as input.
 
Thanks
 
Nick

On 6 December 2011 18:38, Dave Hylands <dhylands@gmail.com> wrote:
Hi Nick,

On Tue, Dec 6, 2011 at 5:32 AM, Nick Starzicki <nick2501@gmail.com> wrote:
Hi
 
I have an over fire on a summit board, and I would like to use the GPIO's as an input to a signal.
 
I know how to write, compile and execute code on the gumstix, but I have no idea how to refer to the GPIO's and read signals or send signals through them.
 
Could anyone please help, and maybe send a code example of how to do this?

This page is probably a good place to start
http://wiki.gumstix.org/index.php?title=GPIO

What are you trying to do?

--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com/

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users