Logicraft Studios
Offline Arduino, RP2040 & ESP32 simulator
Starting local backend…
Logicraft Studios Logo
LogicraftStudio
HW LAB · v2.5
ExamplesEditorAboutGitHub
CORE:CDAC ARIES · RISC-V
ENGINE:SPICE-WASM v2.0
BENCH READY
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