This commit is contained in:
2020-12-17 15:53:34 +13:00
parent 167b48703f
commit e6bfdccc61
3 changed files with 30 additions and 20 deletions

View File

@@ -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();
}