added cascade code for controlling emitters over serial