Chris,

Out of frustration with having to toggle each bit separately, I wrote a
library which addresses the problem of scattered I/O pins and allows to use
up to 32 independent lines as one word. Due to design of the I/O in the
processor it is not possible to change at the same time pins scattered over
multiple banks but, at least from the application point of view, all
allocated pins are visible as an n-bit word. The library uses mmap to
access the pins, so even with the translation layer between the application
and the hardware it still should be faster than using file I/O on /sys
entries.
The code is posted on github: https://github.com/piranha32/IOoo

j.



On Thu, Mar 6, 2014 at 4:25 AM, <c...@isbd.net> wrote:

> All the examples and libraries (Python mostly) that I can find for
> doing IO to the GPIO pins seem to handle only a bit at a time.  This
> is fine for things like driving relays and LEDs but makes little sense
> for 8-bit data.
>
> Are there any sets of 8 GPIO pins that can be used together easily for
> outputting 8-bit data?  ... and are there any Python IO libraries that
> make doing this easy?
>
> At present my Python code is carefully masking, shifting and
> outputting the data bit by bit and I have a horrible suspicion that
> the library I'm using is carefully doing the opposite before it does
> the actual write to GPIO. :-)
>
> --
> Chris Green
> ยท
>
> --
> 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 beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Given a choice between two theories, take the one which is funnier

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to