Compare commits
2 commits
d2d4de1fba
...
2c13e3fb8c
Author | SHA1 | Date | |
---|---|---|---|
2c13e3fb8c | |||
ebde2bb06a |
3 changed files with 12 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -34,3 +34,6 @@ tags
|
|||
# .nfs files are created when an open file is removed but is still being accessed
|
||||
.nfs*
|
||||
|
||||
# venv
|
||||
python/
|
||||
venv/
|
||||
|
|
8
detect_buzz.py
Normal file
8
detect_buzz.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# See https://gpiozero.readthedocs.io/en/stable/api_input.html
|
||||
from gpiozero import Button
|
||||
buzzer = Button(16)
|
||||
|
||||
button.wait_for_press()
|
||||
print("The button was pressed!")
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
gpiozero
|
Loading…
Reference in a new issue