When the negative pole of the led is connected to the I/O port of the Arduino, the other end is connected to the 5V voltage through the current limiting resistor. At this time, Arduino when the output is low, the led is lit, and when the output is high, the led is off.