Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: How bad would it be to drive the anode of an LED from a GPIO pin?

  1. #1
    Junior Member
    Join Date
    Dec 2021
    Location
    Michigan USA
    Posts
    3

    How bad would it be to drive the anode of an LED from a GPIO pin?

    Iím working with an illuminated encoder that has its LEDsí cathodes tied together. Can I safely drive their anodes with GPIO pins (with a resistor on each)?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,536
    Yes. Just connect the cathode to ground. Of course, use reasonable resistors, like 150 ohms or higher.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •