// STM32 Nucleo-L031K6 HAL Blink + printf() example
// Simulation: https://wokwi.com/projects/367244067477216257
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stm32l0xx_hal.h>
// Define the GPIO
#define LED_PORT GPIOA
#define RED_R GPIO_PIN_1
#define GRE_R GPIO_PIN_2
#define BLU_R GPIO_PIN_3
#define RED_T GPIO_PIN_4
#define GRE_T GPIO_PIN_5
#define BLU_T GPIO_PIN_6
// GPIO 初始化
Loading
st-nucleo-l031k6
st-nucleo-l031k6