Vedika
Published © GPL3+

LED blinking patterns with STM32 Black Pill and STM Cube IDE

We will learn about how to implement various LED combinations using STM32 black pill and STM Cube IDE.

BeginnerProtip1 hour16
LED blinking patterns with STM32 Black Pill and STM Cube IDE

Things used in this project

Hardware components

STM32F401CCU6
×1

Software apps and online services

STM32CUBEPROG
STMicroelectronics STM32CUBEPROG

Story

Read more

Schematics

led blinking

Code

code:

Arduino
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5,0);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_6,0);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7,0);

  HAL_Delay(1000);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7,1);

  HAL_Delay(1000);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_6,1);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7,0);

  HAL_Delay(1000);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_6,1);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7,1);

  HAL_Delay(1000);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5,1);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_6,0);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7,0);

  HAL_Delay(1000);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7,1);

  HAL_Delay(1000);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_6,1);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7,0);

  HAL_Delay(1000);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_6,1);

  HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7,1);

  HAL_Delay(1000);

Credits

Vedika

Vedika

2 projects • 3 followers

Comments