From 708e4f33d352e28eb76d3dac8b7f8ce84d99f4cb Mon Sep 17 00:00:00 2001 From: Serge Bazanski Date: Sat, 11 Jul 2026 18:45:01 +0200 Subject: [PATCH] pico 2 hack --- platformio.ini | 10 +++++++++- src/boards.h | 8 ++++---- src/config.h | 4 ++-- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/platformio.ini b/platformio.ini index d468130..060ec06 100644 --- a/platformio.ini +++ b/platformio.ini @@ -70,4 +70,12 @@ board = pico framework = arduino board_build.core = earlephilhower upload_port = /media/filip/RPI-RP2 -build_flags = -D MCU_PICO \ No newline at end of file +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 diff --git a/src/boards.h b/src/boards.h index 040a928..f92bad6 100644 --- a/src/boards.h +++ b/src/boards.h @@ -64,9 +64,9 @@ #define STAGE_MAX_MOTORS 3 #elif defined(BOARD_CUSTOM_PICO) #define BOARD_STRING "Custom Pico board" - #define WIRING_MOTOR_X 2, 3, 4, 5 - #define WIRING_MOTOR_Y 6, 7, 8, 9 - #define WIRING_MOTOR_Z 10, 11, 12, 13 + #define WIRING_MOTOR_X 8, 9, 10, 11 + #define WIRING_MOTOR_Y 12, 13, 14, 15 + #define WIRING_MOTOR_Z 16, 17, 18, 19 #define ENDSTOPS_INVERT false #define ENDSTOPS_PULLUPS true #define WIRING_ENDSTOPS_MIN {A0,A1,A2} @@ -132,4 +132,4 @@ #define WIRING_PWM_LEDS {} #define SUPPORT_EEPROM #define STAGE_MAX_MOTORS 3 -#endif \ No newline at end of file +#endif diff --git a/src/config.h b/src/config.h index d461bd9..80d87a3 100644 --- a/src/config.h +++ b/src/config.h @@ -19,7 +19,7 @@ // #define ENDSTOPS // #define LIGHT_SENSOR // #define STEPSTICK - #define ILLUMINATION + // #define ILLUMINATION #ifdef ENDSTOPS #define ENDSTOPS_MIN @@ -35,4 +35,4 @@ //#define LIGHT_SENSOR_ADAFRUIT_ADS1115 #define CONFIGURED -#endif \ No newline at end of file +#endif