From 2af4abbcaa3305c46e8d637ed993d811f9c08ab3 Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 24 Mar 2024 22:32:51 +0100 Subject: [PATCH] Improve linting --- detect_buzz.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/detect_buzz.py b/detect_buzz.py index 0daa9af..dd71749 100644 --- a/detect_buzz.py +++ b/detect_buzz.py @@ -1,8 +1,11 @@ #!/usr/bin/env python3 # -*- 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 buzzer = Button(16) -button.wait_for_press() +buzzer.wait_for_press() print("The button was pressed!")