Voice Recognition Module programming issue

Hi Paul

Im onto the next issue now but im looking for an idea of how to do it rather then a the way im doing it now.

there is two things i need help with.

  1. i have my VR module now truning on a LED when i say "red" and they off when i say " off" but this takes up an extra command for one action as in on and of for one LED , i want to do StateChangeDetection with the word "red" so when i say red the led goes high and when i say red again the "led" goes "low" my problem is the statechangedetection reads from a pin which i dont have in the software. how do i go about this ? i know i can run a wire from the red light to another input and just read the input if its high or low but thats wasting pins.

  2. How do i program the unit to go into a specific Case and stay looping in that case untill i give it a command to exit back to the main program? currently it keeps reverting back to the top of the code.