Hi Mark. Great, thanks!

Per my understanding, the Device Tree approach of 
https://elinux.org/EBC_Exercise_17_Switching_a_GPIO_to_an_LED doesn't 
include modifying user_leds_s0 (pinmux for user leds). Do you know why 
isn't this needed?


Best Regards,
Pedro Bertoleti

Em terça-feira, 1 de setembro de 2020 às 16:47:15 UTC-3, Mark A. Yoder 
escreveu:

> 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/893a6501-2201-47ff-8f8b-fe0665243410n%40googlegroups.com.

Reply via email to