The point was to proviide a simple short example of how to export GPIO for access from Java. Of course the could have been done in Java but it would be more then 3 lines of code.
On Jan 1, 7:13 pm, Chris Stratton <[email protected]> wrote: > On Dec 30 2010, 12:19 pm, A Curtis <[email protected]> wrote: > > > This is basically what I did to access a GPIO from Java land. > > > echo "128" >/sys/class/gpio/export > > echo "out" > /sys/devices/virtual/gpio/gpio128/direction > > chmod 0666 /sys/devices/virtual/gpio/gpio128/value > > Just FYI, that's not accessing sysfs directly from java, but > apparently issuing shell commands to do so. I can't think of any good > reason you shouldn't be able to accomplish this task using java file i/ > o functions directly. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
