vi /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/boards.txt
megatronics.name=Megatronics
megatronics.upload.protocol=wiring
megatronics.upload.maximum_size=258048
megatronics.upload.speed=115200
megatronics.upload.tool=avrdude
megatronics.bootloader.low_fuses=0xFF
megatronics.bootloader.high_fuses=0xDA
megatronics.bootloader.extended_fuses=0xF5
megatronics.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex
megatronics.bootloader.unlock_bits=0x3F
megatronics.bootloader.lock_bits=0x0F
megatronics.build.mcu=atmega2560
megatronics.build.f_cpu=16000000L
megatronics.build.core=arduino
megatronics.build.variant=mega
megatronics.build.board=AVR_MEGA2560
#define STRING_CONFIG_H_AUTHOR "(jorg, owobi_bot)" // Who made the changes.
#define TEMP_SENSOR_0 5
#define HEATER_0_MAXTEMP 300
#define DEFAULT_Kp 21.79
#define DEFAULT_Ki 2.38
#define DEFAULT_Kd 49.99
#define PIDTEMPBED
#define DEFAULT_bedKp 85.56
#define DEFAULT_bedKi 7.50
#define DEFAULT_bedKd 243.91
#define EXTRUDE_MINTEMP 150
const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Y_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
#define INVERT_X_DIR true
#define INVERT_Y_DIR true
#define X_MAX_POS 190
#define Y_MAX_POS 190
#define Z_MAX_POS 290
#define HOMING_FEEDRATE {50*60, 50*60, 10*60, 0} // set the homing speeds (mm/min)
#define DEFAULT_AXIS_STEPS_PER_UNIT {80, 80, 400, 521} // default steps per unit for Ultimaker
#define DEFAULT_MAX_FEEDRATE {1000, 1000, 50, 25} // (mm/sec)
Modify Configuration_adv.h (only modified values are shown)
#define EXTRUDER_0_AUTO_FAN_PIN 7
#define EXTRUDER_AUTO_FAN_SPEED 180 // == full speed
Upload the new firmware to the megatronics v3.0