>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



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to