Can someone help me with this code? Whenever I press a button I want the computer to print a statement. I have an Atmel STK500 development board. But it doesn't work; here's the code:
Code:
#include <avr/io.h> // avr header file for IO ports
int main(void){
DDRA = 0x00; // set PORTA for input
if(PORTA == 0x00){
printf("Hello!");
}
return 1;
}

