Toggle a pin!
This commit is contained in:
parent
58d84aa536
commit
6447435af0
@ -1,9 +1,18 @@
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <stdio.h>
|
||||
#include <util/delay.h>
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
DDRF |= 1 << PF7;
|
||||
|
||||
|
||||
while (1) {
|
||||
PORTF &= ~(1 << PF7);
|
||||
_delay_ms(1000);
|
||||
PORTF |= 1 << PF7;
|
||||
_delay_ms(1000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user