From the link provided by Jornmo you can see that a similar library is probably the best approach for using Gambas with the Beaglebone. You will also need to understand how such a library can be used with Gambas.
I don't have a Beaglebone Black, so I can only suggest that you have a couple of programming options;
1) you could find a suitable C/C++ Library and use this to access GPIO via your Gambas code.
2) you could try to work with the I/O files to read and write to the pins.
A quick search of Github brought up this C++ Library:
https://github.com/yigityuce/BlackLib
It looks suitable, but as I say I've never used it.
Using simple file commands involves configuring & exporting pins, and then executing commands from Gambas. So to toggle a pin may involve something like:-
Code: Select all
echo 1 > /sys/class/gpio/gpio32/value
echo 0 > /sys/class/gpio/gpio32/value
Take a look at documents like:
https://elinux.org/images/3/33/GPIO_Pro ... lebone.pdf
Again, there may be better documents out there, my suggestions are just to get you started.