[Gambas-user] Raspberry pi question

Christer Johansson lists at ...2828...
Mon Jul 30 11:11:13 CEST 2012


>Maybe I say something stupid, but there is a shell script example there:
> 
> http://elinux.org/RPi_Low-level_peripherals#GPIO_Driving_Example_.28Shell_script.29
>
>It is just a matter of writing or reading files in /sys/class/gpio as 
>root. So you can use the standard file functions in Gambas for doing the 
>same thing.
>
>Couldn't it be a simple solution?

Yes, thats probably the easiest way to toggle the I/O pins ON/OFF if
speed is no concern but when there is no way to use interrupt etc that
way. Also it does not run in user space must be run as root wich is fine
for some things but not all.

/CJ






More information about the User mailing list