I'm currently trying to implement an opto-isolator into my project currently I have my code to run perfectly with out the implementation, but I was wondering how I can effectively control my RG LED (which I am restricted to using a common cathode)

I know my schematic is wonky :p I was just trying to properly interface my opto-coupler before I change my schematic.


**Basically I want to know if there is a way to control the RG LEDs based on if I output from my Green or Red terminal of the Arduino with one optocoupler.** 
(I will be implementing up to 12 RG LEDs and have a few 4-channel isolators)

Thanks in advance!!