Declaring analog pins as digital and setting up with a loop

There seem to be places where analog and digital are mistaken words in the description and the solution offered. I may need a second period of time later to sort it.

It seems unlikely, however. If you cannot or will not share the code, please make a minimal sketch that compiles and demonstrates your problem so that we can see what is really going on, and if indeed some analog pins used as digital pins truly cause problems.

Besides the few gotcha! analog pins that don't work as digital outputs, I am not aware of any other things like this that I would,d very much like to be aware of.

Perhaps it will all be clear when I take more time to read words, but at a glance the code you did post looks entirely plausible.

a7