Dror, a while ago I wrote for myself a small class library which implements wrappers for gpio, spi, and i2c, and provides simple and user friendly interface to the application. Take a look at it, and see if it will work for you: https://github.com/piranha32/IOoo
Jacek. On Sun, Mar 12, 2017 at 8:47 AM, Dror Lugasi <[email protected]> wrote: > Hi guys! > > I am writing a program with C++ for the BBB that has some serial ports and > Ethernet communication, and i want to control the GPIO with it. > > At this moment i am able to activate / read / write / and choose in or out > for the digital GPIO, and also read the analog input. > I am doing everything with the function "system" that runs a terminal > command. > > I am doing this only cause all the tutorials i saw about GPIO are from the > terminal, sending 'echo' and 'cat' to the GPIO's files in the > /sys/class/gpio path's.. > > > is this a reasonable way? i don't need the GPIO switching to be lightning > fast. > I saw that there are some libraries (like BlackLib for example) for > controlling the GPIO but my question is: does they do exactly that? > or do they reach the hardware from a better/faster way?? > > same goes to all other features like PWM, I2C etc... > > Thanks for your attention! > Dror. > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/4efd585d-cf3d-473f-a940-61922d27d5f3%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAA2oDvahOrDd1wVveedNtKtHHwMB7CenrfCYPesLoMcA%3Di3Axw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
