avr_fred:
How am I beating around the bush? I told you how to fix it. Twice. You’ve yet to ask any specifics, rather you tell me I’m wasting my time writing useless posts.Oh well, I guess it’s true what they say. You can show a programmer their own buggy code but you can’t make them fix it.
You answered your own question, you haven't shown anything. I have a specific problem listed in the the OP but you haven't provided a specific answer. Instead you say to read the datasheet and rewrite the test program from scratch. Since I know of nothing to change, the new program will be the same as the old one.
It is very difficult to ask specific question about general and vague statements.
I know the Pxx pins are "quasi-bidirectional". It listed on the first page of the datasheet.
The reply
avr_fred:
The output ports are "quasi-bidirectional". Read the datasheet again. Your answer is in there.
doesn't show anything because if I had seen the answer I would not have started this thread.
And the other reply
avr_fred:
There’s your answer. Compare what you said with what your “simple” test code does. Start with a blank sketch and simplify your test code. The absolute minimum number of lines using your own understanding stated above.
does nothing for me because the sketch reads inputs and writes outputs. So without a specific change to be made, I don't have or see anything that needs to be changed.
You obviously know or think you know what is wrong, but you haven't been specific about stating it. This conversation is now six posts long without any no new information. I wonder how many more before something useful and enlightening is posted?