From 57c10b6c33605f52caea7643291144675a2d3653 Mon Sep 17 00:00:00 2001 From: William Miceli Date: Tue, 18 May 2021 10:41:16 -0400 Subject: [PATCH] LED initialization fix and made things more explicit --- Telem_Debug/Debug_BlinkyLED-Basic/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telem_Debug/Debug_BlinkyLED-Basic/main.c b/Telem_Debug/Debug_BlinkyLED-Basic/main.c index 0ff1372..d887024 100644 --- a/Telem_Debug/Debug_BlinkyLED-Basic/main.c +++ b/Telem_Debug/Debug_BlinkyLED-Basic/main.c @@ -11,8 +11,9 @@ int main(void) { clock_init(); // Configure HF and LF clocks delay(); - P8DIR = LEDG | LEDR | LEDY0 | LEDY1; // Set all four main LEDs as output - P8OUT |= LEDG; // Turn on permanently the green LED + P8DIR |= LEDG | LEDR | LEDY0 | LEDY1; // Set all four main LEDs as output + P8OUT |= LEDG; // Turn on permanently the green LED + P8OUT &= ~(LEDY0 | LEDY1); // Initially set both yellow LEDs off _EINT(); //enable global interrupts