|
@@ -1016,6 +1016,206 @@
|
1016
|
1016
|
#endif
|
1017
|
1017
|
|
1018
|
1018
|
/****************************************************************************************
|
|
1019
|
+* Printrboard Rev. B pin assingments (ATMEGA90USB1286)
|
|
1020
|
+* Requires the Teensyduino software with Teensy++ 2.0 selected in arduino IDE!
|
|
1021
|
+ http://www.pjrc.com/teensy/teensyduino.html
|
|
1022
|
+* See http://reprap.org/wiki/Printrboard for more info
|
|
1023
|
+****************************************************************************************/
|
|
1024
|
+#if MOTHERBOARD == 81
|
|
1025
|
+#define MOTHERBOARD 8 // Disable MarlinSerial etc.
|
|
1026
|
+#define KNOWN_BOARD 1
|
|
1027
|
+
|
|
1028
|
+#ifndef __AVR_AT90USB1286__
|
|
1029
|
+#error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
|
|
1030
|
+#endif
|
|
1031
|
+
|
|
1032
|
+#define X_STEP_PIN 28
|
|
1033
|
+#define X_DIR_PIN 29
|
|
1034
|
+#define X_ENABLE_PIN 19
|
|
1035
|
+#define X_MIN_PIN 47
|
|
1036
|
+#define X_MAX_PIN -1
|
|
1037
|
+
|
|
1038
|
+#define Y_STEP_PIN 30
|
|
1039
|
+#define Y_DIR_PIN 31
|
|
1040
|
+#define Y_ENABLE_PIN 18
|
|
1041
|
+#define Y_MIN_PIN 20
|
|
1042
|
+#define Y_MAX_PIN -1
|
|
1043
|
+
|
|
1044
|
+#define Z_STEP_PIN 32
|
|
1045
|
+#define Z_DIR_PIN 33
|
|
1046
|
+#define Z_ENABLE_PIN 17
|
|
1047
|
+#define Z_MIN_PIN 36
|
|
1048
|
+#define Z_MAX_PIN -1
|
|
1049
|
+
|
|
1050
|
+#define E0_STEP_PIN 34
|
|
1051
|
+#define E0_DIR_PIN 35
|
|
1052
|
+#define E0_ENABLE_PIN 13
|
|
1053
|
+
|
|
1054
|
+#define HEATER_0_PIN 15 // Extruder
|
|
1055
|
+#define HEATER_1_PIN -1
|
|
1056
|
+#define HEATER_2_PIN -1
|
|
1057
|
+#define HEATER_BED_PIN 14 // Bed
|
|
1058
|
+#define FAN_PIN 16 // Fan
|
|
1059
|
+
|
|
1060
|
+#define TEMP_0_PIN 1 // Extruder - ANALOG PIN NUMBERING
|
|
1061
|
+#define TEMP_1_PIN -1
|
|
1062
|
+#define TEMP_2_PIN -1
|
|
1063
|
+#define TEMP_BED_PIN 0 // Bed - ANALOG PIN NUMBERING
|
|
1064
|
+
|
|
1065
|
+#define SDPOWER -1
|
|
1066
|
+#define SDSS 26
|
|
1067
|
+#define LED_PIN -1
|
|
1068
|
+#define PS_ON_PIN -1
|
|
1069
|
+#define KILL_PIN -1
|
|
1070
|
+
|
|
1071
|
+#ifndef SDSUPPORT
|
|
1072
|
+// these pins are defined in the SD library if building with SD support
|
|
1073
|
+ #define SCK_PIN 21
|
|
1074
|
+ #define MISO_PIN 22
|
|
1075
|
+ #define MOSI_PIN 23
|
|
1076
|
+#endif
|
|
1077
|
+
|
|
1078
|
+#ifdef ULTRA_LCD
|
|
1079
|
+
|
|
1080
|
+ #ifdef NEWPANEL
|
|
1081
|
+ //arduino pin which triggers an piezzo beeper
|
|
1082
|
+ #define BEEPER 33 // Beeper on AUX-4
|
|
1083
|
+
|
|
1084
|
+#ifndef MCP28017_LCD
|
|
1085
|
+ #define LCD_PINS_RS 16
|
|
1086
|
+ #define LCD_PINS_ENABLE 17
|
|
1087
|
+ #define LCD_PINS_D4 23
|
|
1088
|
+ #define LCD_PINS_D5 25
|
|
1089
|
+ #define LCD_PINS_D6 27
|
|
1090
|
+ #define LCD_PINS_D7 29
|
|
1091
|
+#endif // MCP28017_LCD
|
|
1092
|
+
|
|
1093
|
+ //buttons are directly attached using AUX-2
|
|
1094
|
+ #define BTN_EN1 11 // PC1
|
|
1095
|
+ #define BTN_EN2 12 // PC2
|
|
1096
|
+#ifndef VERSAPANEL
|
|
1097
|
+ #define BTN_ENC 31 //the click
|
|
1098
|
+#endif
|
|
1099
|
+
|
|
1100
|
+ #define BLEN_C 2
|
|
1101
|
+ #define BLEN_B 1
|
|
1102
|
+ #define BLEN_A 0
|
|
1103
|
+
|
|
1104
|
+ #define SDCARDDETECT -1 // Ramps does not use this port
|
|
1105
|
+
|
|
1106
|
+ //encoder rotation values
|
|
1107
|
+ #define encrot0 0
|
|
1108
|
+ #define encrot1 2
|
|
1109
|
+ #define encrot2 3
|
|
1110
|
+ #define encrot3 1
|
|
1111
|
+
|
|
1112
|
+ #else //old style panel with shift register
|
|
1113
|
+ //arduino pin witch triggers an piezzo beeper
|
|
1114
|
+ #define BEEPER 33 No Beeper added
|
|
1115
|
+
|
|
1116
|
+ //buttons are attached to a shift register
|
|
1117
|
+ // Not wired this yet
|
|
1118
|
+ //#define SHIFT_CLK 38
|
|
1119
|
+ //#define SHIFT_LD 42
|
|
1120
|
+ //#define SHIFT_OUT 40
|
|
1121
|
+ //#define SHIFT_EN 17
|
|
1122
|
+
|
|
1123
|
+ #define LCD_PINS_RS 16
|
|
1124
|
+ #define LCD_PINS_ENABLE 17
|
|
1125
|
+ #define LCD_PINS_D4 23
|
|
1126
|
+ #define LCD_PINS_D5 25
|
|
1127
|
+ #define LCD_PINS_D6 27
|
|
1128
|
+ #define LCD_PINS_D7 29
|
|
1129
|
+
|
|
1130
|
+ //encoder rotation values
|
|
1131
|
+ #define encrot0 0
|
|
1132
|
+ #define encrot1 2
|
|
1133
|
+ #define encrot2 3
|
|
1134
|
+ #define encrot3 1
|
|
1135
|
+
|
|
1136
|
+ //bits in the shift register that carry the buttons for:
|
|
1137
|
+ // left up center down right red
|
|
1138
|
+ #define BL_LE 7
|
|
1139
|
+ #define BL_UP 6
|
|
1140
|
+ #define BL_MI 5
|
|
1141
|
+ #define BL_DW 4
|
|
1142
|
+ #define BL_RI 3
|
|
1143
|
+ #define BL_ST 2
|
|
1144
|
+
|
|
1145
|
+ #define BLEN_B 1
|
|
1146
|
+ #define BLEN_A 0
|
|
1147
|
+ #endif
|
|
1148
|
+#endif //ULTRA_LCD
|
|
1149
|
+
|
|
1150
|
+#endif
|
|
1151
|
+
|
|
1152
|
+/****************************************************************************************
|
|
1153
|
+ * Brainwave 1.0 pin assignments (AT90USB646)
|
|
1154
|
+ * Requires hardware bundle for Arduino:
|
|
1155
|
+ https://github.com/unrepentantgeek/brainwave-arduino
|
|
1156
|
+ ****************************************************************************************/
|
|
1157
|
+#if MOTHERBOARD == 82
|
|
1158
|
+#define MOTHERBOARD 8 // Disable MarlinSerial etc.
|
|
1159
|
+#define KNOWN_BOARD 1
|
|
1160
|
+
|
|
1161
|
+#ifndef __AVR_AT90USB646__
|
|
1162
|
+#error Oops! Make sure you have 'Brainwave' selected from the 'Tools -> Boards' menu.
|
|
1163
|
+#endif
|
|
1164
|
+
|
|
1165
|
+#define X_STEP_PIN 27
|
|
1166
|
+#define X_DIR_PIN 29
|
|
1167
|
+#define X_ENABLE_PIN 28
|
|
1168
|
+#define X_MIN_PIN 7
|
|
1169
|
+#define X_MAX_PIN -1
|
|
1170
|
+#define X_ATT_PIN 26
|
|
1171
|
+
|
|
1172
|
+#define Y_STEP_PIN 31
|
|
1173
|
+#define Y_DIR_PIN 33
|
|
1174
|
+#define Y_ENABLE_PIN 32
|
|
1175
|
+#define Y_MIN_PIN 6
|
|
1176
|
+#define Y_MAX_PIN -1
|
|
1177
|
+#define Y_ATT_PIN 30
|
|
1178
|
+
|
|
1179
|
+#define Z_STEP_PIN 17
|
|
1180
|
+#define Z_DIR_PIN 19
|
|
1181
|
+#define Z_ENABLE_PIN 18
|
|
1182
|
+#define Z_MIN_PIN 5
|
|
1183
|
+#define Z_MAX_PIN -1
|
|
1184
|
+#define Z_ATT_PIN 16
|
|
1185
|
+
|
|
1186
|
+#define E0_STEP_PIN 21
|
|
1187
|
+#define E0_DIR_PIN 23
|
|
1188
|
+#define E0_ENABLE_PIN 22
|
|
1189
|
+#define E0_ATT_PIN 20
|
|
1190
|
+
|
|
1191
|
+#define HEATER_0_PIN 4 // Extruder
|
|
1192
|
+#define HEATER_1_PIN -1
|
|
1193
|
+#define HEATER_2_PIN -1
|
|
1194
|
+#define HEATER_BED_PIN 38 // Bed
|
|
1195
|
+#define FAN_PIN 3 // Fan
|
|
1196
|
+
|
|
1197
|
+#define TEMP_0_PIN 7 // Extruder / Analog pin numbering
|
|
1198
|
+#define TEMP_1_PIN -1
|
|
1199
|
+#define TEMP_2_PIN -1
|
|
1200
|
+#define TEMP_BED_PIN 6 // Bed / Analog pin numbering
|
|
1201
|
+
|
|
1202
|
+#define SDPOWER -1
|
|
1203
|
+#define SDSS -1
|
|
1204
|
+#define LED_PIN 39
|
|
1205
|
+#define PS_ON_PIN -1
|
|
1206
|
+#define KILL_PIN -1
|
|
1207
|
+#define ALARM_PIN -1
|
|
1208
|
+
|
|
1209
|
+#ifndef SDSUPPORT
|
|
1210
|
+// these pins are defined in the SD library if building with SD support
|
|
1211
|
+ #define SCK_PIN 21
|
|
1212
|
+ #define MISO_PIN 22
|
|
1213
|
+ #define MOSI_PIN 23
|
|
1214
|
+#endif
|
|
1215
|
+
|
|
1216
|
+#endif
|
|
1217
|
+
|
|
1218
|
+/****************************************************************************************
|
1019
|
1219
|
* Gen3+ pin assignment
|
1020
|
1220
|
*
|
1021
|
1221
|
****************************************************************************************/
|