There are now a number of ways of controlling the Raspberry Pi general purpose I/O.
Libraries such as wiringPi and pigpio are written in the C programming language, but can also be used with other languages including Gambas.
I have covered wiringPi previously, and this short post is just a basic introduction to using the pigpio library with Gambas.