aboutsummaryrefslogtreecommitdiff
path: root/host/config.py
blob: 02a047cce66dfcaa91d44813a9a9e6e6c211a3c8 (plain)
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
# Display geometry
# ┌─────────┐ ┌───┬───┬  ⋯  ┬───┬───┐
# │1 o o o 5│ │ 1 │   │     │   │ 8│
# │6 o o o o│ ├───┼───┼  ⋯  ┼───┼───┤
# │o o o o o│ │ 9 │   │     │   │16 │
# │o o o o20│ ├───┼───┼  ⋯  ┼───┼───┤
# └─────────┘ │17 │   │     │   │24 │
#             ├───┼───┼  ⋯  ┼───┼───┤
#             │25 │   │     │   │32 │
#             └───┴───┴  ⋯  ┴───┴───┘

# Physical display dimensions
crate_width = 5
crate_height = 4
crates_x = 8
crates_y = 4

# Computed values
display_width = crates_x * crate_width
display_height = crates_y * crate_height
crate_size = crate_width*crate_height
frame_size = display_width*display_height

# Display gamma factor
gamma = 2.5

# Brightness of the display. 0 to 1.0
brightness = 1.0

# Frame timeout for UDP clients
udp_timeout = 3.0

# Interval for rotation of multiple concurrent UDP clients
udp_switch_interval = 30.0

# Listening addr/port for UDP and TCP servers
udp_addr = tcp_addr = ''
udp_port = tcp_port = 1337

# Forward addr/port
crap_fw_addr, crap_fw_port = '127.0.0.1', 1338

# USB Serial number of matelight to control as byte string (None for first matelight connected)
ml_usb_serial_match = None