Skip to content

Commit

Permalink
Updated mqtt-switch2.py to rpigpio
Browse files Browse the repository at this point in the history
  • Loading branch information
pajikos authored Mar 7, 2024
1 parent 3f91288 commit f6d6b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt-switch2.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def gpio_factory(factory):
MQTT_TOPIC_AVAILABILITY = os.getenv('MQTT_TOPIC_AVAILABILITY', "home/kotel/availability")
AUTOMATIC_SHUTDOWN_DELAY = int(os.getenv('AUTOMATIC_SHUTDOWN_DELAY', 15))
GPIO_ID = int(os.getenv('GPIO_ID', 21))
GPIOZERO_PIN_FACTORY = os.getenv('GPIOZERO_PIN_FACTORY', 'pigpio') # rpigpio, pigpio, lgpio, native
GPIOZERO_PIN_FACTORY = os.getenv('GPIOZERO_PIN_FACTORY', 'rpigpio') # rpigpio, pigpio, lgpio, native

# Setup logging
logging.basicConfig(level=logging.INFO,
Expand Down

0 comments on commit f6d6b9d

Please sign in to comment.