pico 2 hack
This commit is contained in:
parent
2e71fc4fe5
commit
708e4f33d3
3 changed files with 15 additions and 7 deletions
|
|
@ -71,3 +71,11 @@ framework = arduino
|
||||||
board_build.core = earlephilhower
|
board_build.core = earlephilhower
|
||||||
upload_port = /media/filip/RPI-RP2
|
upload_port = /media/filip/RPI-RP2
|
||||||
build_flags = -D MCU_PICO
|
build_flags = -D MCU_PICO
|
||||||
|
|
||||||
|
[env:pico2]
|
||||||
|
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
|
||||||
|
board = rpipico2
|
||||||
|
framework = arduino
|
||||||
|
board_build.core = earlephilhower
|
||||||
|
upload_port = /media/filip/RPI-RP2
|
||||||
|
build_flags = -D MCU_PICO -D BOARD_CUSTOM_PICO
|
||||||
|
|
|
||||||
|
|
@ -64,9 +64,9 @@
|
||||||
#define STAGE_MAX_MOTORS 3
|
#define STAGE_MAX_MOTORS 3
|
||||||
#elif defined(BOARD_CUSTOM_PICO)
|
#elif defined(BOARD_CUSTOM_PICO)
|
||||||
#define BOARD_STRING "Custom Pico board"
|
#define BOARD_STRING "Custom Pico board"
|
||||||
#define WIRING_MOTOR_X 2, 3, 4, 5
|
#define WIRING_MOTOR_X 8, 9, 10, 11
|
||||||
#define WIRING_MOTOR_Y 6, 7, 8, 9
|
#define WIRING_MOTOR_Y 12, 13, 14, 15
|
||||||
#define WIRING_MOTOR_Z 10, 11, 12, 13
|
#define WIRING_MOTOR_Z 16, 17, 18, 19
|
||||||
#define ENDSTOPS_INVERT false
|
#define ENDSTOPS_INVERT false
|
||||||
#define ENDSTOPS_PULLUPS true
|
#define ENDSTOPS_PULLUPS true
|
||||||
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
|
#define WIRING_ENDSTOPS_MIN {A0,A1,A2}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
// #define ENDSTOPS
|
// #define ENDSTOPS
|
||||||
// #define LIGHT_SENSOR
|
// #define LIGHT_SENSOR
|
||||||
// #define STEPSTICK
|
// #define STEPSTICK
|
||||||
#define ILLUMINATION
|
// #define ILLUMINATION
|
||||||
|
|
||||||
#ifdef ENDSTOPS
|
#ifdef ENDSTOPS
|
||||||
#define ENDSTOPS_MIN
|
#define ENDSTOPS_MIN
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue