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