From 6447435af0fe434de7d0083c5b8fcda7096f4f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Gro=C3=9F?= Date: Thu, 2 Dec 2021 22:28:01 +0100 Subject: [PATCH] Toggle a pin! --- src/togglePin.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/togglePin.c b/src/togglePin.c index 77e9a0e..02a50f3 100644 --- a/src/togglePin.c +++ b/src/togglePin.c @@ -1,9 +1,18 @@ #include -#include -#include +#include + int main() { + DDRF |= 1 << PF7; + + + while (1) { + PORTF &= ~(1 << PF7); + _delay_ms(1000); + PORTF |= 1 << PF7; + _delay_ms(1000); + } return 0; }