Improve linting
This commit is contained in:
parent
2c13e3fb8c
commit
2af4abbcaa
1 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# See https://gpiozero.readthedocs.io/en/stable/api_input.html
|
"""
|
||||||
|
Using GPIO to detect button
|
||||||
|
See https://gpiozero.readthedocs.io/en/stable/api_input.html
|
||||||
|
"""
|
||||||
from gpiozero import Button
|
from gpiozero import Button
|
||||||
buzzer = Button(16)
|
buzzer = Button(16)
|
||||||
|
|
||||||
button.wait_for_press()
|
buzzer.wait_for_press()
|
||||||
print("The button was pressed!")
|
print("The button was pressed!")
|
||||||
|
|
Loading…
Reference in a new issue