forked from tbs1-bo/flipflapflop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration_sample.py
More file actions
46 lines (35 loc) · 886 Bytes
/
configuration_sample.py
File metadata and controls
46 lines (35 loc) · 886 Bytes
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
Some default configuration options with default values.
Copy this file to configuration.py and change the values as needed.
"""
# the small one
WIDTH, HEIGHT = 28, 13
# the medium one
#WIDTH, HEIGHT = 126, 16
# the led one
#WIDTH, HEIGHT = 120, 7
flipdotdisplay = {
#"serialdevice": "spy:///dev/ttyUSB0", # use this for debugging
"serialdevice": "/dev/ttyUSB0",
"serialbaudrate": 115200,
"i2c_address": 0x20,
"modules": [18],
"buffered": False
}
display_server = {
"host": "0.0.0.0",
"port": 10101
}
remote_display = {
"host": "localhost",
"port": 10101
}
simulator = {
"fps": 60,
"implementation": "pygame" # or "pyxel"
}
mqtt_broker = 'localhost' # 'test.mosquitto.org'
mqtt_topic_display = 'fff_display'
mqtt_topic_info = 'fff_display_info'
# maximum time to allow for blocking the display
web_max_show_time_ms = 10000