breadboard
docs

Example project · Start here

Black Pill F401CC · Arduino Serial

USB-powered Black Pill F401CC. Serial prints “hello from stm32” and echoes what you send. The editable sketch compiles with USB=None and uses USART1 on PA9/PA10.

The Black Pill F401CC · Arduino Serial circuit as rendered by the simulator

What's on the bench

  • WeAct Black Pill F401CC

The code

This Arduino C++ sketch lives in Code; sign in and press Compile & upload to build real firmware for the emulated board.

// SPDX-License-Identifier: MIT
// Copyright (c) 2026 Breadboard. See LICENSE.
void setup() {
  Serial.begin(115200);
  Serial.println("hello from stm32");
}
void loop() {
  while (Serial.available()) Serial.write(Serial.read());
}

Related projects