Browse Source

Add pins for Motherboard variant 64

These definition contain also the definition for the graphics LCD.
Dirk Eichel 11 years ago
parent
commit
140e095c6e
1 changed files with 27 additions and 8 deletions
  1. 27
    8
      Marlin/pins.h

+ 27
- 8
Marlin/pins.h View File

@@ -644,10 +644,13 @@
644 644
 * Sanguinololu pin assignment
645 645
 *
646 646
 ****************************************************************************************/
647
+#if MOTHERBOARD == 64
648
+#define STB
649
+#endif
647 650
 #if MOTHERBOARD == 63
648 651
 #define MELZI
649 652
 #endif
650
-#if MOTHERBOARD == 62 || MOTHERBOARD == 63
653
+#if MOTHERBOARD == 62 || MOTHERBOARD == 63 || MOTHERBOARD == 64
651 654
 #undef MOTHERBOARD
652 655
 #define MOTHERBOARD 6
653 656
 #define SANGUINOLOLU_V_1_2 
@@ -687,6 +690,10 @@
687 690
 #define FAN_PIN            4
688 691
 #endif
689 692
 
693
+#ifdef STB
694
+#define FAN_PIN            4
695
+#endif
696
+
690 697
 #define PS_ON_PIN          -1
691 698
 #define KILL_PIN           -1
692 699
 
@@ -727,13 +734,25 @@
727 734
      //we have no buzzer installed
728 735
      #define BEEPER -1
729 736
      //LCD Pins
730
-     #define LCD_PINS_RS        4
731
-     #define LCD_PINS_ENABLE    17
732
-     #define LCD_PINS_D4        30
733
-     #define LCD_PINS_D5        29
734
-     #define LCD_PINS_D6        28
735
-     #define LCD_PINS_D7        27
736
-     
737
+	 	 #ifdef DOGLCD
738
+			 // Pins for DOGM SPI LCD Support
739
+			 #define DOGLCD_A0	30
740
+			 #define DOGLCD_CS	29
741
+			 // GLCD features
742
+			 #define LCD_CONTRAST 1
743
+			 // Uncomment screen orientation
744
+		     // #define LCD_SCREEN_ROT_0
745
+		     // #define LCD_SCREEN_ROT_90
746
+			 #define LCD_SCREEN_ROT_180
747
+		     // #define LCD_SCREEN_ROT_270
748
+			 #else // standard Hitachi LCD controller
749
+			 #define LCD_PINS_RS        4
750
+			 #define LCD_PINS_ENABLE    17
751
+			 #define LCD_PINS_D4        30
752
+			 #define LCD_PINS_D5        29
753
+			 #define LCD_PINS_D6        28
754
+			 #define LCD_PINS_D7        27
755
+         #endif
737 756
      //The encoder and click button
738 757
      #define BTN_EN1 11  //must be a hardware interrupt pin
739 758
      #define BTN_EN2 10 //must be hardware interrupt pin

Loading…
Cancel
Save