I have always been taught to driver an LED using an MCP using the following method (Driving the pin high) as shown in the diagram below:
However I have recently seen LED's being driven using the following method as shown in the diagram below. I assume in this method the LED is driven when the digital pin is set to low. Which method is best practice and why?
No comments:
Post a Comment