I have problems about this code: I do not understand which button I have to push and how works the line " button_state = ioport_get_pin_level(GPIO_PUSH_BUTTON_0);" :
#include <asf.h>
int main (void)
{
/* set board io port */
board_init();
bool button_state;
while(1){
button_state = ioport_get_pin_level(GPIO_PUSH_BUTTON_0);
if(button_state){
LED_Off(LED0);
}else{
LED_On(LED0);
}
}
}