Skip to content

Commit

Permalink
Allow y2 pins
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Jan 5, 2024
1 parent d7ac12b commit 260038b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/__tests__/fixtures/hybrid-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"microstepping": 64
},
{
"axis": "x1",
"axis": "y",
"axisDescription": "The B axis motor for the toolhead, located at the rear right of the printer",
"driver": "BTT-TMC2209-13",
"voltage": 24,
Expand All @@ -48,7 +48,7 @@
"microstepping": 64
},
{
"axis": "y",
"axis": "y1",
"axisDescription": "The left Y motor used for cartesian Y control in Hybrid CoreXY, located at the rear left of the printer",
"driver": "BTT-TMC2209-13",
"voltage": 24,
Expand All @@ -59,7 +59,7 @@
"microstepping": 64
},
{
"axis": "y1",
"axis": "y2",
"axisDescription": "The right Y motor used for cartesian Y control in Hybrid CoreXY, located at the rear right of the printer",
"driver": "BTT-TMC2209-13",
"voltage": 24,
Expand Down
6 changes: 6 additions & 0 deletions src/zods/boards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ export const PinMap = z.object({
y1_uart_pin: z.string().optional(),
y1_diag_pin: z.string().optional(),
y1_endstop_pin: z.string().optional(),
y2_step_pin: z.string().optional(),
y2_dir_pin: z.string().optional(),
y2_enable_pin: z.string().optional(),
y2_uart_pin: z.string().optional(),
y2_diag_pin: z.string().optional(),
y2_endstop_pin: z.string().optional(),
z0_step_pin: z.string().optional(),
z0_dir_pin: z.string().optional(),
z0_enable_pin: z.string().optional(),
Expand Down

0 comments on commit 260038b

Please sign in to comment.