breadboard
docs

Example project · Start here

Blue Pill · onboard Blink

A genuine STM32F103C8 runs the bundled STM32duino Blink: the green PC13 LED switches every half second, and LOW lights it. USB supplies power only. The exact sketch is editable in Code; compiling changes needs the compile service to offer the Blue Pill.

The Blue Pill · onboard Blink circuit as rendered by the simulator

What's on the bench

  • Blue Pill STM32F103C8

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() { pinMode(LED_BUILTIN, OUTPUT); }
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(500);
  digitalWrite(LED_BUILTIN, LOW);
  delay(500);
}

Related projects