From 577ccb79e2da6201c3d77d3069f0965cb8f34019 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Fri, 14 Jun 2024 16:11:44 -0700 Subject: [PATCH] Updated to use the bitshift for hte LED port --- src/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main.c b/src/main.c index 89fe62a..fc1adbd 100644 --- a/src/main.c +++ b/src/main.c @@ -10,8 +10,9 @@ //Globals //############################# -#define LED_PIN PB0 - +#define LED_PORT (1<<5) +#define LED_PIN PB5 +#define BLINK_DELAY_MS 5000 //############################# //Prototypes @@ -38,7 +39,6 @@ int main(int argc, char **argv) } - //############################# //FUNCTIONS //############################# @@ -50,12 +50,12 @@ int main(int argc, char **argv) */ void led_blink(void) { //Set the DDR for output. - DDRC |= (1<