void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, STM32!");
}
void loop() {
// Turn LED2 on
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_SET);
HAL_Delay(500); // Delay 0.5 seconds
// Turn LED2 off
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_RESET);
HAL_Delay(500); // Delay 0.5 seconds
delay(10); // this speeds up the simulation
}
Loading
st-nucleo-c031c6
st-nucleo-c031c6