STM32F4 之STM32CubeMx编程学习(二) cubemx的User Label GPIO设置了User-Label之后 会在main.h 中有相关的宏定义 比如: #define LED0_Pin GPIO_PIN_0 #define LED0_GPIO_Port GPIOC #define LED1_Pin GPIO_PIN_1