An LED can be connected to a microcontroller output port in two different modes: current sinking and current sourcing. As shown in Figure 6.1, in current sinking mode the anode leg of the LED is ...