Last active
March 11, 2017 15:03
-
-
Save wdwalker/58eba800c143c8dd63b362c839998af2 to your computer and use it in GitHub Desktop.
Toggle LED1-4 on and off
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Turn the LEDs on and off at roughly 1Hz. | |
*/ | |
while (1) { | |
LPC_GPIO1->FIOSET |= ALL; /* p132 */ | |
delay_ms(500); | |
LPC_GPIO1->FIOCLR |= ALL; /* p132 */ | |
delay_ms(500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment