Traffic light with mBlock and ME 4 Button doesn't work


#1

Hi all,

I designed a traffic light with the Uno Shield. On Port 4 the ME RGB LED, ME 4 Button on Port 8, and on port 7 the ME Touch Sensor.

If I start the Programm an touch the sensor, everything is fine. But when I use the Button it runs 5 timnes (5x red, red/yellow, green, yellow, red).

I don’t understand why.

Can anybody give me a tipp?

Senv


#2

@Senv99,

It would be helpful if you will upload your code, so we can help you figure out what the problem is.

Mike


#3

Hi all, here is the code.
I can’t find an error