This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can the nRF52840 MCU power LED direct?

I'm planning to connect The nRF52840 MCU GPIO in series to a 1.8V 20mA LED and a Resistor then to ground. 

Would the current from the MCU be sufficient to power the LED ? 

Thank you 

Parents Reply
  • nrf_gpio_cfg_output(led_pin);
    nrf_gpio_cfg(LED_1,NRF_GPIO_PIN_DIR_OUTPUT,
                    NRF_GPIO_PIN_INPUT_DISCONNECT,
                    NRF_GPIO_PIN_NOPULL,
                    NRF_GPIO_PIN_H0D1,      
                    NRF_GPIO_PIN_NOSENSE);
                    
    nrf_gpio_pin_write(led_pin, 0);
    nrf_gpio_pin_write(LED_1,0);

    I am connecting the LED like Figure 1: +V is 3.3V and PORT Pin is configured as LED_1 and led_pin. I have 2 LEDs configured as the same connection.

    Both GPIO codes don't work.

    Thank you 

    Best regards,

    Chong 

Children
Related