Skip to content

Commit 93da240

Browse files
committed
Merge branch 'main' of https://github.com/DraftShift/Docs
2 parents e3b1a7c + 64034aa commit 93da240

File tree

3 files changed

+111
-25
lines changed

3 files changed

+111
-25
lines changed

data/example_boards.yml

Lines changed: 92 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Nitehawk36 V1.4:
3636
# To use this config, the firmware should be compiled for the
3737
# Raspberry Pi RP2040".
3838
accelerometer: "adxl345"
39-
axis_map: "x, z, y"
39+
axis_map: "x,z,y"
4040
pullup_resistor: "2200"
4141
sense_resistor: "0.100"
4242
pin_map:
@@ -66,7 +66,7 @@ NitehawkSB V1.5:
6666
# To use this config, the firmware should be compiled for the
6767
# Raspberry Pi RP2040".
6868
accelerometer: "adxl345"
69-
axis_map: ""
69+
axis_map: "-z,-y,-x"
7070
pullup_resistor: "2200"
7171
sense_resistor: "0.100"
7272
pin_map:
@@ -86,4 +86,93 @@ NitehawkSB V1.5:
8686
part_fan_pin: "gpio6"
8787
part_tach_pin: "gpio17"
8888
detection_pin: "gpio10"
89-
rgb_pin: "gpio7"
89+
rgb_pin: "gpio7"
90+
91+
Mellow sht v2:
92+
mcu_name: "SHT"
93+
protocol: "CAN"
94+
preface: |
95+
# This file contains common pin mappings for the mellow fly sht36 v2.
96+
# To use this config, the firmware should be compiled for the
97+
# stm32f072".
98+
accelerometer: "adxl345"
99+
axis_map: ""
100+
pullup_resistor: "4700" # No jumper=4700 ohms for NTC thermistor. Add jumper to set to 1100 ohms for PT1000 thermistor.
101+
sense_resistor: "0.100"
102+
pin_map:
103+
acc_cs_pin: "PA9"
104+
acc_sclk_pin: "PB13"
105+
acc_mosi_pin: "PB15"
106+
acc_miso_pin: "PB14"
107+
step_pin: "PB4"
108+
dir_pin: "PB3"
109+
enable_pin: "!PA15"
110+
heater_pin: "PA8"
111+
sensor_pin: "PA3"
112+
uart_pin: "PB5"
113+
tx_pin: ""
114+
hotend_fan_pin: "PB10"
115+
he_tach_pin: "PB10"
116+
part_fan_pin: "PB11"
117+
detection_pin: "PA1"
118+
rgb_pin: "PB0"
119+
120+
EBB36 Gen2 CAN:
121+
mcu_name: "EBB"
122+
protocol: "CAN"
123+
preface: |
124+
# This file contains common pin mappings for the BIGTREETECH EBB36 Gen2 V1.0.
125+
# To use this config, the firmware should be compiled for the
126+
# STM32G0B1 with "8 MHz crystal" and "CAN bus (on PB12/PB13)".
127+
accelerometer: "adxl345"
128+
axis_map: "x,Y,Z"
129+
pullup_resistor: "2200"
130+
sense_resistor: ""
131+
pin_map:
132+
acc_cs_pin: "PB1"
133+
acc_sclk_pin: "PB10"
134+
acc_mosi_pin: "PB11"
135+
acc_miso_pin: "PB2"
136+
step_pin: "PB14"
137+
dir_pin: "PA8"
138+
enable_pin: "!PB6"
139+
heater_pin: "PB4"
140+
sensor_pin: "PA3"
141+
uart_pin: "PA15"
142+
tx_pin: ""
143+
hotend_fan_pin: "PD2"
144+
he_tach_pin: "PA4"
145+
part_fan_pin: ["PD3", "PA5"]
146+
part_tach_pin: ""
147+
detection_pin: "^PB8"
148+
rgb_pin: "PC7"
149+
150+
EBB36 Gen2 USB:
151+
mcu_name: "EBB"
152+
protocol: "USB"
153+
preface: |
154+
# This file contains common pin mappings for the BIGTREETECH EBB36 Gen2 V1.0.
155+
# To use this config, the firmware should be compiled for the
156+
# STM32G0B1 with "8 MHz crystal" and "USB (on PA11/PA12)".
157+
accelerometer: "adxl345"
158+
axis_map: "x,Y,Z"
159+
pullup_resistor: "2200"
160+
sense_resistor: ""
161+
pin_map:
162+
acc_cs_pin: "PB1"
163+
acc_sclk_pin: "PB10"
164+
acc_mosi_pin: "PB11"
165+
acc_miso_pin: "PB2"
166+
step_pin: "PB14"
167+
dir_pin: "PA8"
168+
enable_pin: "!PB6"
169+
heater_pin: "PB4"
170+
sensor_pin: "PA3"
171+
uart_pin: "PA15"
172+
tx_pin: ""
173+
hotend_fan_pin: "PD2"
174+
he_tach_pin: "PA4"
175+
part_fan_pin: ["PD3", "PA5"]
176+
part_tach_pin: ""
177+
detection_pin: "^PB8"
178+
rgb_pin: "PC7"

docs/_templates/tool_examples.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
# change the mcu section name to the tool board you are configuring:
2727
# {{ data.mcu_name }}0, {{ data.mcu_name }}1, etc.
2828
[mcu {{mcu}}]
29-
{%- if data.protocol == "CAN" %}
29+
{%- if "can" in data.protocol|lower %}
3030
canbus_uuid: xxxxxxxxxxxx
31-
{% else %}
31+
{% endif %}
32+
{%- if "usb" in data.protocol|lower %}
3233
serial: /dev/serial/by-id/usb-Klipper_xxxxxx_xxxxxxxxxxxxx
3334
restart_method: command
3435
{% endif %}
@@ -90,11 +91,19 @@
9091
# tachometer_pin: {{ pin(mcu, data.pin_map.he_tach_pin) }}
9192
# tachometer_ppr: 2
9293
{%- endif %}
93-
94+
{% if data.pin_map.part_fan_pin is iterable and data.pin_map.part_fan_pin is not string %}
95+
[multi_pin T{{ i }}_multipin]
96+
pins: {{ data.pin_map.part_fan_pin|join(", ") }}
97+
{% endif %}
9498
# change the fan_generic section name to the tool you are configuring:
9599
# T0_partfan, T1_partfan, etc.
96100
[fan_generic T{{ i }}_part_fan]
101+
{%- if data.pin_map.part_fan_pin is iterable and data.pin_map.part_fan_pin is not string %}
102+
pin: multi_pin:T{{ i }}_multipin
103+
{%- else %}
97104
pin: {{ pin(mcu, data.pin_map.part_fan_pin) }}
105+
{%- endif -%}
106+
98107
{%- if data.pin_map.part_tach_pin|length %}
99108
# tachometer_pin: {{ pin(mcu, data.pin_map.part_tach_pin) }}
100109
# tachometer_ppr: 2

mkdocs.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,17 @@ theme:
2020
- navigation.instant.progress
2121

2222
palette:
23-
# AUTO
24-
- media: "(prefers-color-scheme)"
25-
toggle:
26-
icon: material/brightness-auto
27-
name: Switch to light mode
28-
29-
# LIGHT MODE
30-
- media: "(prefers-color-scheme: light)"
31-
scheme: default
32-
primary: blue
33-
accent: indigo
34-
toggle:
35-
icon: material/brightness-7
36-
name: Switch to dark mode
37-
38-
# DARK MODE
39-
- media: "(prefers-color-scheme: dark)"
40-
scheme: slate
23+
- scheme: slate
4124
primary: indigo
4225
accent: light blue
4326
toggle:
4427
icon: material/brightness-4
45-
name: Switch to system preference
28+
name: Switch to light mode
29+
30+
- scheme: default
31+
toggle:
32+
icon: material/brightness-7
33+
name: Switch to dark mode
4634

4735
nav:
4836
- Introduction: index.md

0 commit comments

Comments
 (0)