Logicraft Studios
Offline Arduino, RP2040 & ESP32 simulator
Starting local backend…
Logicraft Studios LogoLogicraft StudiosSTUDIO
ExamplesEditorAboutGitHub
Logicraft Studios / Examples / [Pi 4] Button Toggles LED
[Pi 4] Button Toggles LED
BasicsbeginnerArduino Uno

[Pi 4] Button Toggles LED

Raspberry Pi 4 reads a push button on GPIO2 and toggles an LED on GPIO17 with gpiozero. Start the Pi, Upload, run python3 /home/pi/script.py, then click the button.

What you'll simulate

  • ✓Real Arduino Uno emulation — cycle-accurate, no hardware needed
  • ✓3 interactive components on the canvas
  • ✓Serial Monitor included — see output in real time
← Back to examples