On Wed, Dec 13, 2017 at 7:47 AM, <[email protected]> wrote: > Hello I am experimenting with the pocketbeagle, > and i try to write a normal digitalWrite to a gpio pin with my node script. > > i am able to get button input signals and analog read. > > Anyway when i try to use: > > b.pinMode(pin, b.OUTPUT); > b.digitalWrite(pin, b.LOW); > > > i get the message: > > error: Unable to write to /sys/class/gpio/gpio60/value > > the pin seems to be owned by root user, is this the problem? > > 1 root gpio 0 Dec 13 12:57 gpio60 -> > ../../devices/platform/ocp/4804c000.gpio/gpio/gpio60 > > how can this be solved with a beaglescript from nodejs app?
You should be part of the gpio group, double check via: debian@test-bbb-1:~$ cat /etc/group | grep gpio gpio:x:995:debian Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYg5-qVYT2GqC3uK08imWBtWNiVQmB13YrKfqvnQoeAf5w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
