找到LED引脚PA5
首先要点亮LED,就打开工程,这里我选择GPIO_IOToggle
核心代码如下:
int main(void)
{
/* USER CODE BEGIN 1 */
/* STM32WBAxx HAL library initialization:
- Systick timer is configured by default as source of time base, but user
can eventually implement his proper time base source (a general purpose
timer for example or other time source), keeping in mind that Time base
duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and
handled in milliseconds basis.
- Set NVIC Group Priority to 4
- Low Level Initialization
*/
/* USER CODE END 1 */