Browse Source

- Pins for modified GEN7 assigned

- Added support for ATMega1284
Christian Thalhammer 12 years ago
parent
commit
a11f3b2d2f
1 changed files with 98 additions and 0 deletions
  1. 98
    0
      Marlin/pins.h

+ 98
- 0
Marlin/pins.h View File

@@ -523,6 +523,104 @@
523 523
 
524 524
 #endif
525 525
 
526
+/*******************************************************************************
527
+*********
528
+* Gen7 Alfons3  pin assignment
529
+*
530
+********************************************************************************
531
+********/
532
+/* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/
533
+
534
+#if MOTHERBOARD == 77
535
+#define KNOWN_BOARD
536
+
537
+#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
538
+    #error Oops!  Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
539
+
540
+#endif
541
+
542
+//x axis pins
543
+    #define X_STEP_PIN      21                  //different from stanard GEN7
544
+    #define X_DIR_PIN       20				    //different from stanard GEN7
545
+    #define X_ENABLE_PIN    24
546
+    #define X_MIN_PIN       0
547
+    #define X_MAX_PIN       -1
548
+
549
+    //y axis pins
550
+    #define Y_STEP_PIN      23
551
+    #define Y_DIR_PIN       22
552
+    #define Y_ENABLE_PIN    24
553
+    #define Y_MIN_PIN       1
554
+    #define Y_MAX_PIN       -1
555
+
556
+    //z axis pins
557
+    #define Z_STEP_PIN      26
558
+    #define Z_DIR_PIN       25
559
+    #define Z_ENABLE_PIN    24
560
+    #define Z_MIN_PIN       2
561
+    #define Z_MAX_PIN       -1
562
+
563
+    //extruder pins
564
+    #define E0_STEP_PIN      28
565
+    #define E0_DIR_PIN       27
566
+    #define E0_ENABLE_PIN    24
567
+    
568
+    #define TEMP_0_PIN      2
569
+    #define TEMP_1_PIN      -1
570
+    #define TEMP_2_PIN      -1
571
+    #define TEMP_BED_PIN        1   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
572
+     
573
+    #define HEATER_0_PIN    4
574
+    #define HEATER_1_PIN    -1   
575
+    #define HEATER_2_PIN    -1
576
+    #define HEATER_BED_PIN      3  // (bed)
577
+   
578
+   
579
+
580
+    
581
+    #define SDPOWER         -1
582
+    #define SDSS            31                  // SCL pin of I2C header || CS Pin for SD Card support
583
+    #define LED_PIN         -1
584
+
585
+    #define FAN_PIN         -1
586
+    #define PS_ON_PIN       19
587
+    //our pin for debugging.
588
+
589
+    #define DEBUG_PIN        -1
590
+
591
+    //our RS485 pins
592
+    //#define TX_ENABLE_PIN       12
593
+    //#define RX_ENABLE_PIN       13
594
+    
595
+    #define BEEPER -1	
596
+	#define SDCARDDETECT -1 		
597
+    #define SUICIDE_PIN -1						//has to be defined; otherwise Power_off doesn't work
598
+	
599
+	//Pins for 4bit LCD Support 
600
+    #define LCD_PINS_RS 18 
601
+    #define LCD_PINS_ENABLE 17
602
+    #define LCD_PINS_D4 16
603
+    #define LCD_PINS_D5 15 
604
+    #define LCD_PINS_D6 13
605
+    #define LCD_PINS_D7 14
606
+    
607
+     //buttons are directly attached
608
+    #define BTN_EN1 11
609
+    #define BTN_EN2 10
610
+    #define BTN_ENC 12  //the click
611
+    
612
+    #define BLEN_C 2
613
+    #define BLEN_B 1
614
+    #define BLEN_A 0
615
+
616
+   
617
+    #define encrot0 0
618
+    #define encrot1 2
619
+    #define encrot2 3
620
+    #define encrot3 1
621
+   
622
+    
623
+#endif
526 624
 
527 625
 #if MOTHERBOARD == 7
528 626
 #define KNOWN_BOARD

Loading…
Cancel
Save