Skip to content

Commit 3a670dc

Browse files
authored
Merge pull request #11 from phillipthelen/more-filament
Add more Filament types and order type and color
2 parents 9ddc3e2 + 6a68b57 commit 3a670dc

File tree

2 files changed

+56
-23
lines changed

2 files changed

+56
-23
lines changed

firmware/bambu.h

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ namespace bambulabs
1010
const std::unordered_map<std::string, std::string> filament_mappings = {
1111
{"TPU", "GFU99"},
1212
{"PLA", "GFL99"},
13+
{"PLA High Speed", "GFL95"},
14+
{"PLA Silk", "GFL96"},
1315
{"PETG", "GFG99"},
1416
{"PET-CF", "GFG99"},
1517
{"ASA", "GFB98"},
@@ -19,16 +21,31 @@ namespace bambulabs
1921
{"PA-CF", "GFN98"},
2022
{"PLA-CF", "GFL98"},
2123
{"PVA", "GFS99"},
24+
{"BVOH", "GFS97"},
25+
{"EVA", "GFR99"},
26+
{"HIPS", "GFS98"},
27+
{"PC", "GFC99"},
28+
{"PCTG", "GFG97"},
29+
{"PE", "GFP99"},
30+
{"PE-CF", "GFP98"},
31+
{"PHA", "GFR98"},
32+
{"PP", "GFP97"},
33+
{"PP-CF", "GFP96"},
34+
{"PP-GF", "GFP95"},
35+
{"PPA-CF", "GFN97"},
36+
{"PPA-GF", "GFN96"},
2237
{"Support", "GFS00"}};
2338

2439
// Special cases for brand-specific codes
2540
const std::unordered_map<std::string, std::unordered_map<std::string, std::string>> brand_specific_codes = {
2641
{"PLA", {{"Bambu", "GFA00"}, {"PolyTerra", "GFL01"}, {"PolyLite", "GFL00"}}},
2742
{"TPU", {{"Bambu", "GFU01"}}},
28-
{"ABS", {{"Bambu", "GFB00"}}},
43+
{"ABS", {{"Bambu", "GFB00"}, {"PolyLite", "GFB60"}}},
44+
{"ASA", {{"Bambu", "GFB01"}, {"PolyLite", "GFB61"}}},
2945
{"PC", {{"Bambu", "GFC00"}}},
3046
{"PA-CF", {{"Bambu", "GFN03"}}},
31-
{"PET-CF", {{"Bambu", "GFT00"}}}};
47+
{"PET-CF", {{"Bambu", "GFT00"}}},
48+
{"PETG", {{"Bambu", "GFG00"}, {"PolyLite", "GFG60"}}}};
3249

3350
// Function with two parameters
3451
inline std::string get_bambu_code(const std::string &type, const std::string &brand = "")

firmware/conf.d/filament.yaml

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,30 @@ select:
1212
web_server:
1313
sorting_group_id: sorting_group_filament_settings
1414
options:
15-
- PLA
16-
- PETG
17-
- TPU
1815
- ABS
19-
- PLA-CF
16+
- ASA
17+
- BVOH
18+
- EVA
19+
- HIPS
20+
- PA
2021
- PA-CF
22+
- PC
23+
- PCTG
24+
- PE
25+
- PE-CF
26+
- PETG
27+
- PET-CF
28+
- PLA
29+
- PLA High Speed
30+
- PLA Silk
31+
- PLA-CF
32+
- PP
33+
- PP-CF
34+
- PP-GF
35+
- PPA-CF
36+
- PPA-GF
2137
- PVA
22-
- PET-CF #TODO: double check it is PET-CF and not PETCF as I think I've seen both in wolfwithsword code
38+
- TPU
2339
on_value:
2440
then:
2541
- script.execute: generate_filament_brand_code
@@ -74,29 +90,29 @@ select:
7490
sorting_group_id: sorting_group_filament_settings
7591
optimistic: true
7692
options:
77-
- "white"
78-
- "yellow"
93+
- "beige"
94+
- "black"
95+
- "blue"
96+
- "dark_blue"
97+
- "ice_blue"
98+
- "brown"
99+
- "dark_brown"
100+
- "cyan"
101+
- "desert_tan"
79102
- "grass_green"
80103
- "bambu_green"
81104
- "missletoe_green"
82-
- "dark_blue"
83105
- "glow_green"
84-
- "ice_blue"
85-
- "cyan"
86-
- "blue"
87-
- "iris_purple"
106+
- "ash_grey"
107+
- "grey"
88108
- "magenta"
89-
- "sakura_pink"
109+
- "orange"
90110
- "pink"
111+
- "sakura_pink"
112+
- "iris_purple"
91113
- "red"
92-
- "dark_brown"
93-
- "orange"
94-
- "beige"
95-
- "desert_tan"
96-
- "brown"
97-
- "ash_grey"
98-
- "grey"
99-
- "black"
114+
- "white"
115+
- "yellow"
100116
- "Unknown"
101117
on_value:
102118
then:

0 commit comments

Comments
 (0)