You could just create a turn on green arrow. Have a button for pedestrians. The only way for them to turn is if they have a green arrow and the green arrow will only appear when pedestrians are stopped or finished walking and all cars are clear or fully stopped