void Eraser::goEvent( SProcessEvent *event ) { if( !event->device().isEmpty() ) setDevice( event->device() ); step_1(); }
void AudioCdRecord::goEvent( SProcessEvent *event ) { if( !event->device().isEmpty() ) setDevice( event->device() ); else return; step_1(); }
int main (void) { DDRB = 7; /** Put PB0, PB1 and PB2 in Output**/ DDRC = 47; /** Put PC0, PC1, PC2, PC3 and PC5 in Output**/ DDRD = 1<<PD2; /***********************************/ DDRD |= 1<<PD3; /***********************************/ PORTD = 1<<PD2; /** **/ PORTD |= 1<<PD3; /** **/ EIMSK = 1<<INT0; /** Required to use interrupt **/ EIMSK |= 1<<INT1; /** **/ MCUCR = 1<<ISC01 | 1<<ISC00; /** **/ MCUCR |= 1<<ISC11 | 1<<ISC10; /***********************************/ sei(); /***********************************/ while(1) { if (state != 2) { state = 0; step_1(); } if (state == 1) { step_4(); step_5(); step_6(); } else { if(state != 2) { step_2(); step_3(); } } if (state != 1) { state = 0; step_4(); } if (state == 2) { step_1(); step_2(); step_3(); } else { if(state !=1) { step_5(); step_6(); } } } return 0; }