Help with LEDs on model railway project

Hi @jbogle3,

would you mind posting the complete code where the problem arises?

Greetings

ec2021