Something
public c v1 · immutable#include <avr/io.h>#include <avr/interrupt.h>int state1;int state2;SIGNAL(SIG_INTERRUPT0){ if ((PINA >> PA0) & 1)!=state1) { PORTD ^=(1<<PD6); state1 ^=1; } if ((PINA >> PA1) & 1)!=state1) { PORTD ^=(1<<PD5); state1 ^=1; }}int main(void){ state1 = 1; state2=1; GICR=0xC0; MCUCR=0x01; sei(); DDRD |= (1 << PD6); DDRD |= (1 << PD5); PORTD |= (1 << PD2); PORTA |= (1 << PA0); PORTA |= (1 << PA1); while (1) { } return 0;}