def dontwalk(): print("Don't walk") buzzer.off() # Flash the amber on and off for 6 seconds # (And the green 'pedestrian' LED too)