Skip to content

Commit

Permalink
Upgrade GPIO library for Debian 12 compatibility (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Aitor Iturrioz <aiturrioz@tknika.eus>
  • Loading branch information
bodiroga authored Aug 8, 2024
1 parent 5ff918b commit 1dda9bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
RPi.GPIO==0.7.1
rpi-lgpio==0.6
pyzmq==25.1.1
7 changes: 4 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
import os


PIN_NUMBER = int(os.environ.get("BUTTON_PIN", 3))
PIN_NUMBER = int(os.environ.get("BUTTON_PIN", 3))
LOG_LEVEL = os.environ.get("LOG_LEVEL", logging.INFO)
BUTTON_EVENTS_PORT = int(os.environ.get("BUTTON_EVENTS_PORT", 5556))

PUBLISHER_HOST = "0.0.0.0"

logging.basicConfig(format='%(asctime)s %(levelname)-8s - %(name)-16s - %(message)s', level=LOG_LEVEL)
logging.basicConfig(
format='%(asctime)s %(levelname)-8s - %(name)-16s - %(message)s', level=LOG_LEVEL)
logger = logging.getLogger(__name__)


Expand All @@ -24,7 +25,7 @@ def signal_handler(sig, frame):


def on_click_event(event):
logger.debug(f"New '{event}' detected")
logger.info(f"New '{event}' detected")
publisher_client.send(event)


Expand Down

0 comments on commit 1dda9bf

Please sign in to comment.