a
This commit is contained in:
2
init.py
2
init.py
@@ -28,7 +28,7 @@ class AlarmClock:
|
|||||||
def __init__(self, pins: dict = {}):
|
def __init__(self, pins: dict = {}):
|
||||||
self.ledGpio = GPIO(pins.get("led", 5), GPIO.OUT)
|
self.ledGpio = GPIO(pins.get("led", 5), GPIO.OUT)
|
||||||
self.buttonGpio = GPIO(pins.get("button", 6), GPIO.IN)
|
self.buttonGpio = GPIO(pins.get("button", 6), GPIO.IN)
|
||||||
self.relayGpio = GPIO(pins.get("relay", 17), GPIO.OUT)
|
self.relayGpio = GPIO(pins.get("relay", 16), GPIO.OUT)
|
||||||
self.lcd = JHD1802()
|
self.lcd = JHD1802()
|
||||||
self.setLcdText("AlarmClock Init")
|
self.setLcdText("AlarmClock Init")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user