pico 2 hack
This commit is contained in:
parent
2e71fc4fe5
commit
708e4f33d3
3 changed files with 15 additions and 7 deletions
|
|
@ -70,4 +70,12 @@ board = pico
|
|||
framework = arduino
|
||||
board_build.core = earlephilhower
|
||||
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
|
||||
#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
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue