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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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.
user space should not know how you talk to it physically
user space should not know how you talk to it physicallyI don't think this is generally accepted, otherwise user space device drivers wouldn't exist: http://www.embedded.com/design/operating-systems/4401769/Device-drivers-in-user-spaceWith user space device drivers, you're free to push as little or as much into the kernel as you like.
-Brandon
On Thursday, March 6, 2014 12:06:43 PM UTC-8, robert.berger wrote:Hi,
On Thursday, March 6, 2014 11:25:14 AM UTC+2, 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.
Taking your example. If we are talking about a device you want to connect to your beagle user space should not know how you talk to it physically and whether it's 8-bit data or i2c or something else underneath. Having said that there was/is some attempt to do what you want in kernel space [1] and it's called block GPIO [2] but I don't think it made it into mainline.
Regards,
Robert
[1] http://lwn.net/Articles/533632/
[2] http://lwn.net/Articles/533557/
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/91ikp6Mxi0s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
> When you use user space drivers, you no longer have that protection.Since this is so off topic I'll just say, anyone interested about this topic, there is plenty of tutorials and articles about sane user space device drivers, along with production quality open source drivers. The acceptance of the concept is somewhat new, and there are many misconceptions.