About connecting two GPIO pins together

I am using a four digit seven segment display led panel common cathode connected to an Arduino UNO.
In some tutorials related to this which I saw on the internet, they are connecting the GPIO pins , however in between there is the led panel and a resistor. Also one GPIO pin is HIGH whiel the other is LOW and they are connected together as I mentioned above. Would't there be a short circuit and the board will burn out.

Also, what are the pins of the four digit seven segment which should have resistors connected to?

Also,I have the same problem with a 8 by 8 dot matrix?

Am I at any risk of frying my board?

It is not wise to connect two OUTPUT pins together without a current-limiting resistor between them. There is indeed a great risk of damage to the pins due to a short circuit.

Connecting two INPUT pins or and INPUT and an OUTPUT will not cause a problem.

...R

In some tutorials related to this which I saw on the internet, they are connecting the GPIO pins ,

Please provide links to the tutorials so that we know what you are talking about.

Also, what are the pins of the four digit seven segment which should have resistors connected to?

What 7 segment display? How are we to know which 7 segment display that you have?

Also,I have the same problem with a 8 by 8 dot matrix?

What problem is that?

And, I can't think of any good reason to connect 2 pins on the same processor except for, maybe, a serial loopback test.

groundFungus:
What 7 segment display? How are we to know which 7 segment display that you have?

The standard 7 segment display. Are there more than one types?.My one is common cathode.

Robin2:
It is not wise to connect two OUTPUT pins together without a current-limiting resistor between them. There is indeed a great risk of damage to the pins due to a short circuit.

Connecting two INPUT pins or and INPUT and an OUTPUT will not cause a problem.

...R

I am connecting two OUTPUT pins but in between there is a resistor 220 ohms and led panel. One pin is high and the other low. Isn't that exactly what we are told to avoid?

SparkingBoards:
I am connecting two OUTPUT pins but in between there is a resistor 220 ohms and led panel. One pin is high and the other low. Isn't that exactly what we are told to avoid?

That sounds perfectly reasonable. One I/O pin acts as power and the other as GND. The 220 ohm resistor and the voltage drop across the diode limit the current to a level that the I/O pins are comfortable with.

...R

However for a seven segment display or a matrix, since you will be powering more than one segment when you pull a digit cathode LOW, the resistors in the segment anodes need to be 1k to limit the common cathode current.

This is only for "educational" playing around with a seven segment or matrix display. For any genuine projects, you use a module with a proper MAX7219 display driver.

eBay!

But it would be preferable to wait until normal business resumes and the prices return to the more realistic pre-COVID-19 situation - if that actually happens. :roll_eyes:

Well, then is it safe to use the circuit or will it fry up my board?
Also, what should be the ideal resistance that I apply?

Are there any precautions I have to take when I make this circuit, such as certain pins are off-limits or some connections cannot be made?

The standard 7 segment display

No such thing.

Post your proposed wiring diagram (hand drawn with pins labeled) and a link to the display product page or data sheet.