Added more delay to be able to see LEDs toggling on and off

This commit is contained in:
Sunseeker Lab A-216
2021-05-21 15:51:39 -04:00
parent fdf5422b16
commit d0ef7da5c0
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1,2 @@
/Debug/ /Debug/
/.launches/

View File

@@ -17,9 +17,12 @@ int main(void) {
_EINT(); //enable global interrupts _EINT(); //enable global interrupts
volatile int i;
while(1) while(1)
{ {
P8OUT ^= LEDY0 | LEDY1; // Toggle both yellow LEDs P8OUT ^= LEDY0 | LEDY1; // Toggle both yellow LEDs
for(i = 1000; i > 0; i--){
delay(); delay();
} }
}
} }