Led Blink
Led Blink
Aim:
To blink the onboard LEDS of board STM32f407G-DISC1
Components Required:
1.Discovery Board - STM32F407G-DISC1
Pin details:
4. Clock Configuration:
4.Closethe ioc file. It will ask whether to Generate Code.
Click OK
II Program - II
Main Loop Without Delay
while (1)
{
HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15);
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
// Not doing anything here