1
2
45
168
314
112
int main() //主程序 { Led_Init();//初始化 Key_Init(); while(1) { LED = 1; if(KEY == 0) { LED = 0; } } }void Led_Init(void) { GPIO_InitTypeDef GPIO_InitStructure;//结构体声明RCC_APB2PeriphClockC...