Add example pico wiring configuration to boards.h

This commit is contained in:
Filip Ayazi 2021-08-20 02:29:02 +02:00
parent 6919f63009
commit 1b8ffc88d7

View file

@ -6,7 +6,7 @@
#elif defined(MCU_BLUEPILL)
#define BOARD_CUSTOM_BLUEPILL
#elif defined(MCU_PICO)
#define BOARD_CUSTOM
#define BOARD_CUSTOM_PICO
#else
#error "Invalid build config - must specify MCU type"
#endif
@ -39,6 +39,15 @@
#define ENDSTOPS_PULLUPS true
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
#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
#define BOARD_STRING "Custom board"
#define WIRING_MOTOR_X 13, 12, 11, 10