Skip to content

Instantly share code, notes, and snippets.

@wdwalker
Last active March 11, 2017 15:03
Show Gist options
  • Save wdwalker/58eba800c143c8dd63b362c839998af2 to your computer and use it in GitHub Desktop.
Save wdwalker/58eba800c143c8dd63b362c839998af2 to your computer and use it in GitHub Desktop.
Toggle LED1-4 on and off
/* 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