If the pin acts as the input then it should read an external state. I would 
configure this pin as the output and then write 0/1 to a necessary bit position

Отправлено с iPad

> 3 июля 2015 г., в 19:02, Salman Feroze <[email protected]> написал(а):
> 
> Hey guys,
> 
> I am relatively new in this forum, so please bear with me if the questions I 
> ask would sound unintelligent. I am currently working with the Beagle Bone 
> Black that is running QNX RTOS. I am trying to get my head around this board 
> by developing simple programs such as turning ON an external LED that is 
> connected to the board. So far, I have manage to identify a GPIO pin and set 
> it to be an input using the data direction register (DDR) function. However, 
> I am unable to move on from here.
> 
> Since I have enabled the pin to act as input, how would I be able to use it 
> to turn ON an LED? What should be my next step be?
> 
> Any input/suggestion would be much appreciated.
> -- 
> 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.

-- 
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