-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecrets.py.sample
executable file
·32 lines (27 loc) · 961 Bytes
/
secrets.py.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This file is where you keep secret settings, passwords, and tokens!
# If you put them in the code you risk committing that info or sharing it
# which would be not great. So, instead, keep it all in this one file and
# keep it a secret.
secrets = {
'broker': "broker.hivemq.com", # _your_mqtt_broker_url_or_ip_
'broker_user': "", # _your_mqtt_broker_username_
'broker_pass': "", # _your_mqtt_broker_password_
'topic_prefix': "/onoffpins", # _prefix_for_device_mqtt_topics
'mac': (0xDE, 0xAD, 0xBA, 0xBE, 0xBE, 0xEF), # mac address for wiznet5k
}
# These are the pins that will be set, based on a 0 based array of pins provided
# via the MQTT messages. List as many or as few as what your device is willing to
# manage.
import board
PINS = [
board.SDA,
board.SCL,
board.D5,
board.D6,
board.D9,
board.D11,
board.D12,
board.D13,
]
# Enable debug for a more verbose output in code.py
DEBUG = False