Gpiozero Button | Gpiozero Btn Issue | Btn In Gpiozero | Problem W Gpiozero Btn | Gpiozero Button Help | Using Gpiozero Btn | Gpiozero Button Prob | Trouble With Btn Gpiozero | Read Button Raspberry Pi | Read Btn On Pi | Pressing Pi's Read | Pi Read Feature | Use Pi Read | Pi Read Option | Click Pi Read | Pi Read Function | Pi GPIO Button | GPIO Pi Button Help | Pi GPIO Btn Query | Button On Pi GPIO | GPIO Button Pi Info | Pi GPIO Button Use | Btn Pi GPIO Setup | GPIO Pi Button Issue | Raspberry Pi Button Python | Raspberry Pi Btn Code | Python Script For Buttons | Pi Button Python Example | Coding Button On Pi | Button Control With Pi

Raspberry Pi / Python Open Kit Simulator ↗ All recipes
Tip: Ctrl+↵ to run
Python runs in your browser. Hit Run to execute — first run downloads the Python runtime (~10 MB), then it's instant. Note: GPIO calls won't actually toggle your Pi's pins from a browser. Use this to test logic, then run the .py on your Pi.

About this recipe

Libraries / imports

gpiozero signal

Hardware / pins

GPIO 2

Key API calls

print()

How to run

Press Run — executes in a Web Worker. Edits auto-save.
Editor python edits auto-save
Output ready
Output will appear here after you click Run.