I'm trying to make a program for beaglebone to let me control the gpio pins. I tried to use sprintf() but doesn't accept input as I know.
I have to re-write couple files in the beaglebone like
gpio export active the pin gpio gpio$pin/direction pin mode in/out gpio gpio$pin/value pin value 1/0
guys..!! just need a idea how to accomplish my goal.
I'm newbie in c++. any information or comment I'll appreciated thks guys for your time.