如何用按键控制LED,这里将告诉你 按键控制LED #include "stm32f10x.h" #include "eval.h" #include "SysTickDelay.h" #include /* Private typedef --------------------------------------------------------- --*/ typedef enum { FAILED = 0, PASSED = !FAILED} TestStatus; /* Private define ---------------------------------------------------------- --*/ /* Private macro ----------------------------------------------------------- --*/ #define countof(a) (sizeof(a) / sizeof(*(a))) /* Private variables ------------------------------------------------------- --*/ /* Private function prototypes --------------------------------------------- --*/ void RCC_Configuration(void); void GPIO_Configuration(void); void NVIC_Configuration(void); void GPIO_Configuration(void) { STM_EVAL_LEDInit(LED1); STM_EVAL_LEDInit(LED2); STM_EVAL_LEDIni……