Toggle a pin!

This commit is contained in:
Marco Groß 2021-12-02 22:28:01 +01:00
parent 58d84aa536
commit 6447435af0

View File

@ -1,9 +1,18 @@
#include <avr/io.h> #include <avr/io.h>
#include <avr/interrupt.h> #include <util/delay.h>
#include <stdio.h>
int main() int main()
{ {
DDRF |= 1 << PF7;
while (1) {
PORTF &= ~(1 << PF7);
_delay_ms(1000);
PORTF |= 1 << PF7;
_delay_ms(1000);
}
return 0; return 0;
} }