Hello faimbs,

the USER LEDs are allready connected to GPIO-1, pins 21 to 24. By default 
these pins are configured as outputs.

An easy (and fast) alternative to control USER LEDs is libpruio 
<http://beagleboard.org/project/libpruio/>. No need for file access to 
control the status, just call a function to switch the LED on or off. Find 
the example sos.c in the package that makes the USER LED-3 blinking in SOS 
code:

   - description: 
   
http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/ChaExamples.html#SubExaSos
   - source code: 
   
http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/sos_8c_source.html

*libpruio can do the pin muxing and control all GPIOs (a*s well as ADC 
inputs)*. You only need a simple device tree overlay to switch on the PRUSS*. 
All the other stuff is in your source code (single source). Your program 
doesn't need root privileges (but the user needs read/write access to 
*/dev/uio5*, see DOC: Preparation 
<http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/ChaPreparation.html>
 
for details).

Am Mittwoch, 7. Mai 2014 20:32:36 UTC+2 schrieb faimbs:
>
> Hello!
>
> Can I forward the User Led to the GPIO?
> I want to build my own Expansion Board and need this LED.
>
> OR is this function already connectet to some GPIO?
>
> Thank you!
>
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to