Raspberry Pi LEDs
André Marques
andre.lousa.marques at gmail.com
Fri Feb 13 23:24:54 UTC 2015
On 13-02-2015 15:51, Joel Sherrill wrote:
> On 1/29/2015 9:35 PM, Joel Sherrill wrote:
>> On January 29, 2015 10:59:31 AM CST, "André Marques" <andre.lousa.marques at gmail.com> wrote:
>>> On 29-01-2015 12:38, Joel Sherrill wrote:
>>>> Hi
>>>>
>>>> I was looking at the led examples on the Pi. Do I need to hook up an
>>> external LED?
>>>
>>> The ACT led (which would be used to indicate SD card activity) is
>>> hardwired to GPIO 16, so you may be able to use it (it works on my
>>> model
>>> B), otherwise you need to use an external LED.
>>> The other board LEDs are hardwired either to the power supply
>>> (unusable)
>>> or the ethernet/usb chip.
>> That's what Pierre's code in led.h in examples-v2 appears to be doing but we have no blink. I switched the commented out part to the B+.
>>
>> Maybe tomorrow morning I can double check.
> Did you ever get a chance to check?
Just tested it, and the led example worked here on my model B (commented
out the B+ and uncommented the B part). Runned the delay example and the
ACT LED blinked as expected.
I do not have a B+ or a PI 2 (yet) to test the B+ code, but by looking
at the code it should be working too. Model B and B+ use different GPIOs
(16 and 47, respectively) for the ACT LED, so it depends on which RPI
you are using.
--André.
>>> --André.
>>>
>>>> Any hints more than the code?
>>>> --joel
>>>> _______________________________________________
>>>> users mailing list
>>>> users at rtems.org
>>>> http://lists.rtems.org/mailman/listinfo/users
>> --joel
More information about the users
mailing list