From f2d128bfcd5da75970bc8af643f93f339cdbd014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Gro=C3=9F?= Date: Sun, 5 Dec 2021 00:24:16 +0100 Subject: [PATCH] Change pin and delay of the toggle. --- src/togglePin.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/togglePin.c b/src/togglePin.c index 02a50f3..58ecb4b 100644 --- a/src/togglePin.c +++ b/src/togglePin.c @@ -4,14 +4,13 @@ int main() { - DDRF |= 1 << PF7; - + DDRB |= 1 << PB2; while (1) { - PORTF &= ~(1 << PF7); - _delay_ms(1000); - PORTF |= 1 << PF7; - _delay_ms(1000); + PORTB &= ~(1 << PB2); + _delay_ms(10); + PORTB |= 1 << PB2; + _delay_ms(10); } return 0;