I have a LED matrix and I want to light up the LEDs at (C1, R1) and (C4, R4). So I connected R1 and R4 to 5V and connected C1 and C4 to ground.
But the problem is that (C1, R4) also lights up. Is there any way to avoid this?
I have limited number of 5V and ground ports so I can't connect each LED to it's own 5V and ground port. It is also required that (C1, R1) and (C4, R4) are continuously lighted up. So I cannot remove the voltage supply at any instance.