Your steps look right, but there is a simpler way to do them. Check out: https://elinux.org/EBC_Exercise_17_Switching_a_GPIO_to_an_LED
No need to cross compile etc. --Mark On Tuesday, September 1, 2020 at 10:36:13 AM UTC-4 TJF wrote: > Hi! > > Forget about all that device tree trouble, use libpruio > <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/index.html> > instead. You can configure the pin and set the desired output state by a > single function call in your programm running at user space (no sudo > commands, no rebooting, ...) > > gpio_setValue(Io, P9_15, 1) // configure and set high >> > gpio_setValue(Io, P9_15, 0) // set low >> > > You'll have faster boot, less memory consumption, and your code executes > much faster (compared with sysfs GPIO control). > > You may want to check out some examples > <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/ChaExamples.html> > . > > Regards > -- 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/49032644-ee3e-4e3f-b988-aa12cdca0f27n%40googlegroups.com.
