Breadboard
docs
Example project · Microcontrollers

MCU blink

A BB-NANO running real AVR machine code, toggling D13 every 0.5 s. The Code tab holds the matching editable Arduino sketch; sign in and press Compile & upload to build and flash your own.

The MCU blink circuit as rendered by the simulator

What's on the bench

  • Battery
  • LED
  • MCU
  • Resistor

The code

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

// The same blink as an Arduino sketch. Edit it, then Compile & upload
// (sign-in needed): the server builds real AVR firmware and flashes it here.
void setup() {
  pinMode(13, OUTPUT);
}

void loop() {
  digitalWrite(13, HIGH);
  delay(500);
  digitalWrite(13, LOW);
  delay(500);
}