5 #define ELECTRONICS "RAMBo13a"
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
14 #ifdef MICROMETER_LOGGING
15 #define D_DATACLOCK 24
21 #define WATCHDOG_SOFT_RESET_VALUE WDTO_2S
28 #define X_ENABLE_PIN 29
36 #define Y_ENABLE_PIN 28
44 #define Z_ENABLE_PIN 27
48 #define HEATER_BED_PIN 4
49 #define TEMP_BED_PIN 2
51 #define HEATER_0_PIN 3
54 #define HEATER_1_PIN -1
57 #define HEATER_2_PIN -1
60 #define TEMP_AMBIENT_PIN 6
62 #define TEMP_PINDA_PIN 1
68 #define E0_STEP_PIN 34
70 #define E0_ENABLE_PIN 26
75 #define MOTOR_CURRENT_PWM_XY_PIN 46
76 #define MOTOR_CURRENT_PWM_Z_PIN 45
77 #define MOTOR_CURRENT_PWM_E_PIN 44
85 #define SUICIDE_PIN -1
93 #define LCD_PINS_RS 82
94 #define LCD_PINS_ENABLE 18
95 #define LCD_PINS_D4 19
96 #define LCD_PINS_D5 70
97 #define LCD_PINS_D6 85
98 #define LCD_PINS_D7 71
105 #define SDCARDDETECT 15
107 #define IR_SENSOR_PIN 20
111 #define LOGIC_ANALYZER_CH0 X_MIN_PIN
112 #define LOGIC_ANALYZER_CH1 Y_MIN_PIN
113 #define LOGIC_ANALYZER_CH2 53
117 #define LOGIC_ANALYZER_CH3 73
119 #define WRITE_LOGIC_ANALYZER_CH4(value) if (value) PORTK |= (1 << 0); else PORTK &= ~(1 << 0)
120 #define LOGIC_ANALYZER_CH5 16
121 #define LOGIC_ANALYZER_CH6 17
122 #define LOGIC_ANALYZER_CH7 76
124 #define LOGIC_ANALYZER_CH0_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH0)
125 #define LOGIC_ANALYZER_CH1_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH1)
126 #define LOGIC_ANALYZER_CH2_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH2)
127 #define LOGIC_ANALYZER_CH3_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH3)
128 #define LOGIC_ANALYZER_CH4_ENABLE do { DDRK |= 1 << 0; } while (0)
129 #define LOGIC_ANALYZER_CH5_ENABLE do { cbi(UCSR2B, TXEN2); cbi(UCSR2B, RXEN2); cbi(UCSR2B, RXCIE2); SET_OUTPUT(LOGIC_ANALYZER_CH5); } while (0)
130 #define LOGIC_ANALYZER_CH6_ENABLE do { cbi(UCSR2B, TXEN2); cbi(UCSR2B, RXEN2); cbi(UCSR2B, RXCIE2); SET_OUTPUT(LOGIC_ANALYZER_CH6); } while (0)
131 #define LOGIC_ANALYZER_CH7_ENABLE SET_OUTPUT(LOGIC_ANALYZER_CH7)