pico 2 hack

This commit is contained in:
Serge Bazanski 2026-07-11 18:45:01 +02:00
parent 2e71fc4fe5
commit 708e4f33d3
3 changed files with 15 additions and 7 deletions

View file

@ -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

View file

@ -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}

View file

@ -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