Okay, I guess it is time to ask for help. I have learned how to breadboard up a set of traffic lights, a button and a buzzer. I can get them all to work with simple python programs. Now I want to interrupt the normal light sequence when the button is pushed. I can even get a detect event to work. What I do not seem to be able to do is condition the "if" or "while" loop for the lights on the event.
I have a callback and it seems to work, so I can print the status of the "button is pressed" but I cannot pass it as "true" to the loop. I suspect it may be that when defining "btnpushed" it is local to only the callback loop?
i can self learn, but most of the tutorials I see are very single topic context, like what is a while loop or what is an if loop. Any pointers to a good example of using these functions would be great!
i hope this is clear.
Roger Ayotte