MA REGINE BERMUDOPaul Rodolf P. Castor
Published

RT-Spark LED Blink with STM32CubeIDE

Programming the RT-Spark board to blink an LED using the STM32F407ZGT6 chip.

BeginnerFull instructions provided1 hour43
RT-Spark LED Blink with STM32CubeIDE

Things used in this project

Hardware components

RT‑Spark Development board
×1
USB-A to USB-C cable
×1
Windows PC
×1

Software apps and online services

STM32CubeIDE
Git
Github

Story

Read more

Schematics

STM32F407ZGT6 Microcontroller Chip

Microcontroller chip that was used for this project.

Code

Untitled file

C/C++
Code needed for the LED to blink
int main(void)
{
//Some default code here




//code LED blinking
  while (1)
  {
    HAL_GPIO_TogglePin(GPIOF, GPIO_PIN_12); //toggle Red LED
    HAL_Delay(500);
    HAL_GPIO_TogglePin(GPIOF, GPIO_PIN_12); //toggle Red LED
    HAL_Delay(500);

    HAL_GPIO_TogglePin(GPIOF, GPIO_PIN_11); //toggle Green LED
    HAL_Delay(500);
    HAL_GPIO_TogglePin(GPIOF, GPIO_PIN_11); //toggle Green LED
    HAL_Delay(500);
  }

}

Credits

MA REGINE BERMUDO
1 project • 0 followers
Paul Rodolf P. Castor
16 projects • 9 followers

Comments