Problem
Consider to connect a GPIO pin to a LED of yellow color to light the LED up. The voltage of the GPIO pin is 5V when the output is in high state, and the maximum current you can draw from the GPIO pin is 20mA. Show your LED interface circuit. Do you need to use any resistor in your connection? If yes, compute the value of resistor.