-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.py
62 lines (52 loc) · 1.38 KB
/
config.py
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
SNAPMAKER_2_A150 = dict(
name="Snapmaker A150",
model="Snapmaker 2 Model A150",
header_version=0, # default is 1
)
SNAPMAKER_2_A250 = dict(
name="Snapmaker A250",
model="Snapmaker 2 Model A250",
header_version=0,
)
SNAPMAKER_2_A350 = dict(
name="Snapmaker A350",
model="Snapmaker 2 Model A350",
header_version=0,
)
SNAPMAKER_2_A150_DUAL_EXTRUDER = dict(
name="Snapmaker 2.0 A150 Dual Extruder",
model="Snapmaker 2 Model A150",
header_version=0,
)
SNAPMAKER_2_A250_DUAL_EXTRUDER = dict(
name="Snapmaker 2.0 A250 Dual Extruder",
model="Snapmaker 2 Model A250",
header_version=0,
)
SNAPMAKER_2_A350_DUAL_EXTRUDER = dict(
name="Snapmaker 2.0 A350 Dual Extruder",
model="Snapmaker 2 Model A350",
header_version=0,
)
SNAPMAKER_J1 = dict(
name="Snapmaker J1",
model="Snapmaker J1",
header_version=1, # default is 1
)
SNAPMAKER_ARTISAN = dict(
name="Snapmaker Artisan",
model="Snapmaker Artisan",
header_version=1,
)
SNAPMAKER_DISCOVER_MACHINES = [
SNAPMAKER_J1,
SNAPMAKER_ARTISAN,
SNAPMAKER_2_A150,
SNAPMAKER_2_A250,
SNAPMAKER_2_A350,
SNAPMAKER_2_A150_DUAL_EXTRUDER,
SNAPMAKER_2_A250_DUAL_EXTRUDER,
SNAPMAKER_2_A350_DUAL_EXTRUDER,
]
def is_machine_discover_supported(machine_name: str) -> bool:
return machine_name in [machine['name'] for machine in SNAPMAKER_DISCOVER_MACHINES]