transistors would be better/cheaper/easier.
Yep.
Also I doubt an opto could carry enough current for a LED.
Rob