|
|
|
@ -49,20 +49,20 @@ script:
|
|
|
|
|
# backup configuration.h
|
|
|
|
|
- cp Marlin/Configuration.h Marlin/Configuration.h.backup
|
|
|
|
|
- cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
|
|
|
|
|
- cp Marlin/pins_RAMPS_13.h Marlin/pins_RAMPS_13.h.backup
|
|
|
|
|
- cp Marlin/pins_RAMPS_14.h Marlin/pins_RAMPS_14.h.backup
|
|
|
|
|
# add sensor for bed
|
|
|
|
|
- sed -i 's/#define TEMP_SENSOR_BED 0/#define TEMP_SENSOR_BED 1/g' Marlin/Configuration.h
|
|
|
|
|
- rm -rf .build/
|
|
|
|
|
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
|
|
|
|
|
# change extruder numbers from 1 to 2
|
|
|
|
|
- sed -i 's/#define MOTHERBOARD BOARD_RAMPS_13_EFB/#define MOTHERBOARD BOARD_RAMPS_13_EEB/g' Marlin/Configuration.h
|
|
|
|
|
- sed -i 's/#define MOTHERBOARD BOARD_RAMPS_14_EFB/#define MOTHERBOARD BOARD_RAMPS_14_EEB/g' Marlin/Configuration.h
|
|
|
|
|
- sed -i 's/#define EXTRUDERS 1/#define EXTRUDERS 2/g' Marlin/Configuration.h
|
|
|
|
|
- sed -i 's/#define TEMP_SENSOR_1 0/#define TEMP_SENSOR_1 1/g' Marlin/Configuration.h
|
|
|
|
|
#- cat Marlin/Configuration.h
|
|
|
|
|
- rm -rf .build/
|
|
|
|
|
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
|
|
|
|
|
# change extruder numbers from 2 to 3, needs to be a board with 3 extruders defined in pins.h
|
|
|
|
|
- sed -i 's/#define MOTHERBOARD BOARD_RAMPS_13_EEB/#define MOTHERBOARD BOARD_RUMBA/g' Marlin/Configuration.h
|
|
|
|
|
- sed -i 's/#define MOTHERBOARD BOARD_RAMPS_14_EEB/#define MOTHERBOARD BOARD_RUMBA/g' Marlin/Configuration.h
|
|
|
|
|
- sed -i 's/#define EXTRUDERS 2/#define EXTRUDERS 3/g' Marlin/Configuration.h
|
|
|
|
|
- sed -i 's/#define TEMP_SENSOR_2 0/#define TEMP_SENSOR_2 1/g' Marlin/Configuration.h
|
|
|
|
|
- rm -rf .build/
|
|
|
|
@ -175,13 +175,13 @@ script:
|
|
|
|
|
- cp Marlin/Configuration.h.backup Marlin/Configuration.h
|
|
|
|
|
- sed -i 's/\/\/#define Z_DUAL_STEPPER_DRIVERS/#define Z_DUAL_STEPPER_DRIVERS/g' Marlin/Configuration_adv.h
|
|
|
|
|
- sed -i 's/\ \ \/\/\ \#define Z_DUAL_ENDSTOPS/#define Z_DUAL_ENDSTOPS/g' Marlin/Configuration_adv.h
|
|
|
|
|
- sed -i 's/#define X_MAX_PIN 2/#define X_MAX_PIN -1/g' Marlin/pins_RAMPS_13.h
|
|
|
|
|
- sed -i 's/#define X_MAX_PIN 2/#define X_MAX_PIN -1/g' Marlin/pins_RAMPS_14.h
|
|
|
|
|
- sed -i 's/\ \ \ \ \#define Z2_MAX_PIN 36/#define Z2_MAX_PIN 2/g' Marlin/Configuration_adv.h
|
|
|
|
|
- rm -rf .build/
|
|
|
|
|
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
|
|
|
|
|
- cp Marlin/Configuration.h.backup Marlin/Configuration.h
|
|
|
|
|
- cp Marlin/Configuration_adv.h.backup Marlin/Configuration_adv.h
|
|
|
|
|
- cp Marlin/pins_RAMPS_13.h.backup Marlin/pins_RAMPS_13.h
|
|
|
|
|
- cp Marlin/pins_RAMPS_14.h.backup Marlin/pins_RAMPS_14.h
|
|
|
|
|
######## Example Configurations ##############
|
|
|
|
|
# Delta Config (generic)
|
|
|
|
|
- cp Marlin/example_configurations/delta/generic/Configuration* Marlin/
|
|
|
|
|