Analise this sketch please

That sounds like trying to define a function inside another one. Did you paste his code inside an existing function?

The Arduino IDE starts you off with blank setup and loop functions and you have to delete those before you paste in what he’s made for you

presumably you’re referring to

void loop() { toggleN (N_LED);

I copied and pasted the code from the thread and recompiled without any errors. My guess is you lost a closing brace, ‘}’, above the “void loop()”.

may be easiest to send me a copy of you’re code in an IM

Hi again Greg,

I found the problem. Although I copied and pasted your sketch, somehow the two ‘}’ s below "ledIdx = 0; were omitted.

I uploaded the sketck to the board after making the changes you advised. The board LEDs seemed to be timed appropriately so I will install it and await the results when I have connected the LEDs for the structures. Thanks for your help and patience.

Ron from down under.

Check your IM Ron

Mel

Modeling the early to mid 1950s SP in HO scale since 1951

My Model Railroad
http://melvineperry.blogspot.com/

Bakersfield, California

I’m beginning to realize that aging is not for wimps.