Working
This commit is contained in:
@@ -9,16 +9,12 @@ int main()
|
||||
{
|
||||
photointerrupter::init();
|
||||
DDRD |= (1<<PD6);
|
||||
|
||||
while(1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
PHOTOINTERRUPT {
|
||||
cli();
|
||||
PHOTOINTERRUPT {
|
||||
PORTD |= (1<<PD6);
|
||||
_delay_ms(100);
|
||||
PORTD &= ~(1<<PD6);
|
||||
GIFR |= (1<<INTF1);
|
||||
sei();
|
||||
}
|
||||
|
Reference in New Issue
Block a user