|
@@ -957,64 +957,140 @@
|
957
|
957
|
#endif
|
958
|
958
|
|
959
|
959
|
/****************************************************************************************
|
960
|
|
-* Teensylu 0.7 pin assingments (ATMEGA90USB)
|
961
|
|
-* Requires the Teensyduino software with Teensy2.0++ selected in arduino IDE!
|
|
960
|
+* Teensylu 0.7 / Printrboard pin assignments (AT90USB1286)
|
|
961
|
+* Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
|
|
962
|
+ http://www.pjrc.com/teensy/teensyduino.html
|
|
963
|
+* See http://reprap.org/wiki/Printrboard for more info
|
962
|
964
|
****************************************************************************************/
|
963
|
|
-#if MOTHERBOARD == 8
|
964
|
|
-#define MOTHERBOARD 8
|
|
965
|
+#if MOTHERBOARD == 8 || MOTHERBOARD == 81
|
965
|
966
|
#define KNOWN_BOARD 1
|
|
967
|
+#define AT90USB 1286 // Disable MarlinSerial etc.
|
966
|
968
|
|
|
969
|
+#ifndef __AVR_AT90USB1286__
|
|
970
|
+#error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
|
|
971
|
+#endif
|
967
|
972
|
|
968
|
|
-#define X_STEP_PIN 0
|
969
|
|
-#define X_DIR_PIN 1
|
970
|
|
-#define X_ENABLE_PIN 39
|
971
|
|
-#define X_MIN_PIN 13
|
972
|
|
-#define X_MAX_PIN -1
|
|
973
|
+#define X_STEP_PIN 0
|
|
974
|
+#define X_DIR_PIN 1
|
|
975
|
+#define X_ENABLE_PIN 39
|
|
976
|
+#define X_MIN_PIN 13
|
|
977
|
+#define X_MAX_PIN -1
|
973
|
978
|
|
974
|
|
-#define Y_STEP_PIN 2
|
975
|
|
-#define Y_DIR_PIN 3
|
976
|
|
-#define Y_ENABLE_PIN 38
|
977
|
|
-#define Y_MIN_PIN 14
|
978
|
|
-#define Y_MAX_PIN -1
|
|
979
|
+#define Y_STEP_PIN 2
|
|
980
|
+#define Y_DIR_PIN 3
|
|
981
|
+#define Y_ENABLE_PIN 38
|
|
982
|
+#define Y_MIN_PIN 14
|
|
983
|
+#define Y_MAX_PIN -1
|
979
|
984
|
|
980
|
985
|
#define Z_STEP_PIN 4
|
981
|
|
-#define Z_DIR_PIN 5
|
982
|
|
-#define Z_ENABLE_PIN 23
|
983
|
|
-#define Z_MIN_PIN 15
|
984
|
|
-#define Z_MAX_PIN -1
|
985
|
|
-
|
986
|
|
-#define E0_STEP_PIN 6
|
987
|
|
-#define E0_DIR_PIN 7
|
988
|
|
-#define E0_ENABLE_PIN 19
|
989
|
|
-
|
|
986
|
+#define Z_DIR_PIN 5
|
|
987
|
+#define Z_ENABLE_PIN 23
|
|
988
|
+#define Z_MIN_PIN 15
|
|
989
|
+#define Z_MAX_PIN -1
|
990
|
990
|
|
|
991
|
+#define E0_STEP_PIN 6
|
|
992
|
+#define E0_DIR_PIN 7
|
|
993
|
+#define E0_ENABLE_PIN 19
|
991
|
994
|
|
992
|
995
|
#define HEATER_0_PIN 21 // Extruder
|
993
|
996
|
#define HEATER_1_PIN -1
|
994
|
997
|
#define HEATER_2_PIN -1
|
995
|
998
|
#define HEATER_BED_PIN 20 // Bed
|
996
|
|
-#define FAN_PIN 22 // Fan
|
|
999
|
+#define FAN_PIN 22 // Fan
|
|
1000
|
+
|
|
1001
|
+#if MOTHERBOARD == 8
|
|
1002
|
+ #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
|
|
1003
|
+ #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
|
|
1004
|
+#else
|
|
1005
|
+ #define TEMP_0_PIN 1 // Extruder / Analog pin numbering
|
|
1006
|
+ #define TEMP_BED_PIN 0 // Bed / Analog pin numbering
|
|
1007
|
+#endif
|
997
|
1008
|
|
998
|
|
-#define TEMP_0_PIN 7 // Extruder
|
999
|
1009
|
#define TEMP_1_PIN -1
|
1000
|
1010
|
#define TEMP_2_PIN -1
|
1001
|
|
-#define TEMP_BED_PIN 6 // Bed
|
1002
|
1011
|
|
1003
|
1012
|
#define SDPOWER -1
|
1004
|
1013
|
#define SDSS 8
|
1005
|
1014
|
#define LED_PIN -1
|
1006
|
1015
|
#define PS_ON_PIN -1
|
1007
|
|
-#define KILL_PIN -1
|
|
1016
|
+#define KILL_PIN -1
|
1008
|
1017
|
#define ALARM_PIN -1
|
1009
|
1018
|
|
1010
|
1019
|
#ifndef SDSUPPORT
|
1011
|
|
-// these pins are defined in the SD library if building with SD support
|
1012
|
|
- #define SCK_PIN 9
|
1013
|
|
- #define MISO_PIN 11
|
1014
|
|
- #define MOSI_PIN 10
|
|
1020
|
+// these pins are defined in the SD library if building with SD support
|
|
1021
|
+ #define SCK_PIN 9
|
|
1022
|
+ #define MISO_PIN 11
|
|
1023
|
+ #define MOSI_PIN 10
|
|
1024
|
+#endif
|
|
1025
|
+
|
|
1026
|
+#endif // MOTHERBOARD == 8 (Teensylu) or 81 (Printrboard)
|
|
1027
|
+
|
|
1028
|
+/****************************************************************************************
|
|
1029
|
+ * Brainwave 1.0 pin assignments (AT90USB646)
|
|
1030
|
+ * Requires hardware bundle for Arduino:
|
|
1031
|
+ https://github.com/unrepentantgeek/brainwave-arduino
|
|
1032
|
+ ****************************************************************************************/
|
|
1033
|
+#if MOTHERBOARD == 82
|
|
1034
|
+#define KNOWN_BOARD 1
|
|
1035
|
+#define AT90USB 646 // Disable MarlinSerial etc.
|
|
1036
|
+
|
|
1037
|
+#ifndef __AVR_AT90USB646__
|
|
1038
|
+#error Oops! Make sure you have 'Brainwave' selected from the 'Tools -> Boards' menu.
|
1015
|
1039
|
#endif
|
|
1040
|
+
|
|
1041
|
+#define X_STEP_PIN 27
|
|
1042
|
+#define X_DIR_PIN 29
|
|
1043
|
+#define X_ENABLE_PIN 28
|
|
1044
|
+#define X_MIN_PIN 7
|
|
1045
|
+#define X_MAX_PIN -1
|
|
1046
|
+#define X_ATT_PIN 26
|
|
1047
|
+
|
|
1048
|
+#define Y_STEP_PIN 31
|
|
1049
|
+#define Y_DIR_PIN 33
|
|
1050
|
+#define Y_ENABLE_PIN 32
|
|
1051
|
+#define Y_MIN_PIN 6
|
|
1052
|
+#define Y_MAX_PIN -1
|
|
1053
|
+#define Y_ATT_PIN 30
|
|
1054
|
+
|
|
1055
|
+#define Z_STEP_PIN 17
|
|
1056
|
+#define Z_DIR_PIN 19
|
|
1057
|
+#define Z_ENABLE_PIN 18
|
|
1058
|
+#define Z_MIN_PIN 5
|
|
1059
|
+#define Z_MAX_PIN -1
|
|
1060
|
+#define Z_ATT_PIN 16
|
|
1061
|
+
|
|
1062
|
+#define E0_STEP_PIN 21
|
|
1063
|
+#define E0_DIR_PIN 23
|
|
1064
|
+#define E0_ENABLE_PIN 22
|
|
1065
|
+#define E0_ATT_PIN 20
|
|
1066
|
+
|
|
1067
|
+#define HEATER_0_PIN 4 // Extruder
|
|
1068
|
+#define HEATER_1_PIN -1
|
|
1069
|
+#define HEATER_2_PIN -1
|
|
1070
|
+#define HEATER_BED_PIN 38 // Bed
|
|
1071
|
+#define FAN_PIN 3 // Fan
|
|
1072
|
+
|
|
1073
|
+#define TEMP_0_PIN 7 // Extruder / Analog pin numbering
|
|
1074
|
+#define TEMP_1_PIN -1
|
|
1075
|
+#define TEMP_2_PIN -1
|
|
1076
|
+#define TEMP_BED_PIN 6 // Bed / Analog pin numbering
|
|
1077
|
+
|
|
1078
|
+#define SDPOWER -1
|
|
1079
|
+#define SDSS -1
|
|
1080
|
+#define LED_PIN 39
|
|
1081
|
+#define PS_ON_PIN -1
|
|
1082
|
+#define KILL_PIN -1
|
|
1083
|
+#define ALARM_PIN -1
|
|
1084
|
+
|
|
1085
|
+#ifndef SDSUPPORT
|
|
1086
|
+// these pins are defined in the SD library if building with SD support
|
|
1087
|
+ #define SCK_PIN 9
|
|
1088
|
+ #define MISO_PIN 11
|
|
1089
|
+ #define MOSI_PIN 10
|
1016
|
1090
|
#endif
|
1017
|
1091
|
|
|
1092
|
+#endif // MOTHERBOARD == 82 (Brainwave)
|
|
1093
|
+
|
1018
|
1094
|
/****************************************************************************************
|
1019
|
1095
|
* Gen3+ pin assignment
|
1020
|
1096
|
*
|