Add example pico wiring configuration to boards.h
This commit is contained in:
parent
6919f63009
commit
1b8ffc88d7
1 changed files with 10 additions and 1 deletions
11
src/boards.h
11
src/boards.h
|
|
@ -6,7 +6,7 @@
|
||||||
#elif defined(MCU_BLUEPILL)
|
#elif defined(MCU_BLUEPILL)
|
||||||
#define BOARD_CUSTOM_BLUEPILL
|
#define BOARD_CUSTOM_BLUEPILL
|
||||||
#elif defined(MCU_PICO)
|
#elif defined(MCU_PICO)
|
||||||
#define BOARD_CUSTOM
|
#define BOARD_CUSTOM_PICO
|
||||||
#else
|
#else
|
||||||
#error "Invalid build config - must specify MCU type"
|
#error "Invalid build config - must specify MCU type"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -39,6 +39,15 @@
|
||||||
#define ENDSTOPS_PULLUPS true
|
#define ENDSTOPS_PULLUPS true
|
||||||
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
|
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
|
||||||
#define WIRING_ENDSTOPS_MAX {A3,A4,A5}
|
#define WIRING_ENDSTOPS_MAX {A3,A4,A5}
|
||||||
|
#elif defined(BOARD_CUSTOM_PICO)
|
||||||
|
#define BOARD_STRING "Custom Pico board"
|
||||||
|
#define WIRING_MOTOR_X GP2, GP3, GP4, GP5
|
||||||
|
#define WIRING_MOTOR_Y GP6, GP7, GP8, GP9
|
||||||
|
#define WIRING_MOTOR_Z GP10, GP11, GP12, GP13
|
||||||
|
#define ENDSTOPS_INVERT false
|
||||||
|
#define ENDSTOPS_PULLUPS true
|
||||||
|
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
|
||||||
|
#define WIRING_ENDSTOPS_MAX {A3,A4,A5}
|
||||||
#else
|
#else
|
||||||
#define BOARD_STRING "Custom board"
|
#define BOARD_STRING "Custom board"
|
||||||
#define WIRING_MOTOR_X 13, 12, 11, 10
|
#define WIRING_MOTOR_X 13, 12, 11, 10
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue