129行之后改为:
while (2) {
// number = GetConsoleInput(1); // See utilities_lib
// temp = (~0xF00) & (LPC_GPIO_PORT->PIN0); // Read the pin register, preserve all except bits 11-8
// LPC_GPIO_PORT->PIN0 = temp | (number << 8); // Write back the new data into bits 11-8
LEDs_On(RED);
delay_us(500000);
LEDs_Off(RED);
delay_us(500000);
}
红灯每秒闪灯一次。