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

led 1 is off but p0.13 get 3v output , similarly led 1 is on p0.13 get 0v output, how to change it help me

led 1 is off but p0.13 get 3v output , similarly led 1 is on p0.13 get 0v output, how to change it help me. similar for led 1 to led 4 respectively p0.13 to p0.16. 

Parents Reply
  • Hi,

    As mentioned in the other case you created, whether LEDs are active low or not depends on the HW design of your board. It's active low on the Nordic kits, and that's not something you can change with SW. 

    As seen in the Nordic DK schematic,

    If you set the GPIO to low, then the current will flow from VDD, through the LED, and into the nRF52. 

    If you set the GPIO to high(VDD), then voltage on both sides of the LED will be VDD, and the LED will not glow.

Children
Related