From fb134bc25a0fe6b616db06ddd33531801403c5f7 Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Thu, 15 Jan 2026 10:44:07 +0200 Subject: [PATCH] a --- init.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.py b/init.py index 8125857..89071e8 100644 --- a/init.py +++ b/init.py @@ -28,7 +28,7 @@ class AlarmClock: def __init__(self, pins: dict = {}): self.ledGpio = GPIO(pins.get("led", 5), GPIO.OUT) self.buttonGpio = GPIO(pins.get("button", 6), GPIO.IN) - self.relayGpio = GPIO(pins.get("relay", 16), GPIO.OUT) + self.relayGpio = GPIO(pins.get("relay", 17), GPIO.OUT) self.lcd = JHD1802() self.setLcdText("AlarmClock Init") @@ -49,6 +49,7 @@ class AlarmClock: print(f"Button '{button}' pressed state: {state}") if button == "button": self.lastButtonPressTime = time() + self.relayGpio.write(GPIO.HIGH if state else GPIO.LOW) self.setLcdText(self.lastButtonPressTime.__str__()) def setLcdText(self, text: str):