Solved
I'm trying to blink one led but two led blinks
Hi,
i'm trying to blink only one led. I have a problem with one of four leds. Because as you in my code, i'm trying to blink only 'green led'. But 'blue led' blinks also.
#include "stm32f4xx.h" // Device header
#include "stm32f4xx_hal_gpio.h"
int main ()
{
RCC->AHB1ENR |= (4<<1); //initiliazing clock
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP; //push-pull
GPIO_InitStructure.Pin = GPIO_PIN_12; //green led
HAL_GPIO_Init(GPIOD, &GPIO_InitStructure);
HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_12); //blue led blinks also!
return 0;
}