42 is the answer ti the Ultimate Question of Life, the Universe, and Everything, but posting the same schematic that nobody can make sense of 42 times still doesn't make it clear.
Would it be possible for you to draw an accurate schematic in the conventional and customary way with lines showing connections of the "LED matrix" showing the micro, the LEDs and their series resistors and whatever and everything that is connected to B1?
Can you turn on and off individually each of the LEDs?
You have at least one of the following (I suspect all three):
● Hardware problem
● A logic problem
● A software problem
Without an understable schematic showing the parts involved and testing to see if you can ACTUALLY control EACH and EVERY LED (show your code), this thread could go on 11 more pages and it still wouldn't work.