I have question about reading a button and then execution program.
When i work witth I/O i need 3 registers. (DDR,PIN and PORT).
DDRA=0b00000000; //set as Input
PORTA=0b11111111; //pull up, logical 1 is on the port
if(PINA == 0b00000000)
This condition doesn't work.
When i pressed button i connection ground with pin and i have logical 0.
So if someone was so nice and show me how corretly read.