sn00zerman wrote:Gambas3 works fine for me, by following the instructions of TomTor.
(Thanks for sharing)
However, what do I need to do, to be able to "control" GPIO from within Gambas3 ?
(or should I post this question in a Gambas forum ?)
best regards,
Kris
http://www.digitalplayground.be
Hi Snoozerman,
I don't have received a Pi yet, but you can find various instructions on how to use the GPIO when you google, eg:
http://www.instructables.com/id/Control ... y-Pi-GPIO/
It is important to understand that in many cases you can control Linux hardware just by reading and writing special files which exist in the file system.
On
http://www.instructables.com/id/Control ... l-Outputs/
it is explained that by writing text strings to special files, you can control the GPIO hardware.
The linux command:
echo "21" > /sys/class/gpio/export
will write the text string "21" to file "/sys/class/gpio/export".
All you'll have to do from your Gamba program is to write to these files with Gamba basic statements. I'm not a Gamba user myself, so I cannot give you a working example, but I hope the concept is clear.