Making the rest of the Arduino code aware of Outputs turned on by Cayenne

Looks like the answer is over here Can a Cayenne Button attached to a Virtual Pin be turned ON/OFF using code within the sketch? - #4 by i1patrick