может быть RESET "прибить гвоздями" к лог. "0" ...
Key points about ATMega ports in RESET state:
No output behavior: No voltage is actively pushed out from any port pin in a reset state.
High impedance: The port pins behave like high-impedance inputs, meaning they are not actively pulling the voltage in any direction.
External pull-up/down resistors may affect behavior: If external pull-up or pull-down resistors are connected to the port pins, the voltage level may be influenced by those resistors when in reset.

