5 #define ELECTRONICS "RAMBo10a"
8 #ifndef __AVR_ATmega2560__
9 #error Oops! Make sure you have 'Arduino Mega 2560 or Rambo' selected from the 'Tools -> Boards' menu.
12 #define PINDA_THERMISTOR
18 #define WATCHDOG_SOFT_RESET_VALUE WDTO_2S
25 #define X_ENABLE_PIN 29
33 #define Y_ENABLE_PIN 28
41 #define Z_ENABLE_PIN 27
45 #define HEATER_BED_PIN 4
46 #define TEMP_BED_PIN 2
48 #define HEATER_0_PIN 3
51 #define HEATER_1_PIN -1
54 #define HEATER_2_PIN -1
57 #define TEMP_AMBIENT_PIN 6
59 #define TEMP_PINDA_PIN 1
65 #define E0_STEP_PIN 34
67 #define E0_ENABLE_PIN 26
72 #define MOTOR_CURRENT_PWM_XY_PIN 46
73 #define MOTOR_CURRENT_PWM_Z_PIN 45
74 #define MOTOR_CURRENT_PWM_E_PIN 44
82 #define SUICIDE_PIN -1
90 #define LCD_PINS_RS 38
91 #define LCD_PINS_ENABLE 5
92 #define LCD_PINS_D4 14
93 #define LCD_PINS_D5 15
94 #define LCD_PINS_D6 32
95 #define LCD_PINS_D7 31
102 #define SDCARDDETECT 72
104 #define IR_SENSOR_PIN 20
108 #define LOGIC_ANALYZER_CH0 X_MIN_PIN
109 #define LOGIC_ANALYZER_CH1 Y_MIN_PIN
110 #define LOGIC_ANALYZER_CH2 53
114 #define LOGIC_ANALYZER_CH3 73
116 #define WRITE_LOGIC_ANALYZER_CH4(value) if (value) PORTK |= (1 << 0); else PORTK &= ~(1 << 0)
117 #define LOGIC_ANALYZER_CH5 16
118 #define LOGIC_ANALYZER_CH6 17
119 #define LOGIC_ANALYZER_CH7 76
121 #define LOGIC_ANALYZER_CH0_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH0)
122 #define LOGIC_ANALYZER_CH1_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH1)
123 #define LOGIC_ANALYZER_CH2_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH2)
124 #define LOGIC_ANALYZER_CH3_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH3)
125 #define LOGIC_ANALYZER_CH4_ENABLE do { DDRK |= 1 << 0; } while (0)
126 #define LOGIC_ANALYZER_CH5_ENABLE do { cbi(UCSR2B, TXEN2); cbi(UCSR2B, RXEN2); cbi(UCSR2B, RXCIE2); SET_OUTPUT(LOGIC_ANALYZER_CH5); } while (0)
127 #define LOGIC_ANALYZER_CH6_ENABLE do { cbi(UCSR2B, TXEN2); cbi(UCSR2B, RXEN2); cbi(UCSR2B, RXCIE2); SET_OUTPUT(LOGIC_ANALYZER_CH6); } while (0)
128 #define LOGIC_ANALYZER_CH7_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH7)