On Fri, 1/1/16, erik quanstrom <quans...@quanstro.net> wrote:
> i'm looking @ the gpio interface, and i wonder what the recommended
> technique for sampling a pin might be from a shell script?

I haven't really used it in shell scripts, but if I were going to do
so, I'd probably write up a little utility to take a hex string and
a bit number and do the 'and' on it.  Then feed that with the
result of dd to get exactly one sample from devgpio.  On the
other hand, if one of the usual suspects (e.g. hoc, bc, dc, awk)
have some bit-wise operators I'm forgetting, use that.

BLS

Reply via email to