I'm also sort of confused about what's going on, you say it's a matrix of LEDs but it's optocouplers? Are you actually sending data with something like a differential input signal, or are you just trying to drive a lot of LEDs?
What is the device and what do you want to make it do?