ソースを参照

Smoothieboard GLCD w/ SD support (#19241)

Greg Nutt 4年前
コミット
691f02acab
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更42行の追加1行の削除
  1. 42
    1
      Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h

+ 42
- 1
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h ファイルの表示

@@ -111,7 +111,48 @@
111 111
 
112 112
 #elif HAS_SPI_LCD
113 113
 
114
-  #error "Marlin's Smoothieboard support cannot drive your LCD."
114
+  /*
115
+    The Smoothieboard supports the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER with either
116
+    a custom cable with breakouts to the pins indicated below or the RRD GLCD Adapter board
117
+    found at http://smoothieware.org/rrdglcdadapter
118
+
119
+    Other links to information about setting up a display panel with Smoothieboard
120
+    http://chibidibidiwah.wdfiles.com/local--files/panel/smoothieboard2sd.jpg
121
+    http://smoothieware.org/panel
122
+  */
123
+
124
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
125
+    //  EXP1 Pins
126
+    #define BEEPER_PIN                     P1_31  // EXP1 Pin 1
127
+    #define BTN_ENC                        P1_30  // EXP1 Pin 2
128
+    #define LCD_PINS_ENABLE                P0_18  // EXP1 Pin 3 (MOSI) 
129
+    #define LCD_PINS_RS                    P0_16  // EXP1 Pin 4 (CS)  
130
+    #define LCD_PINS_D4                    P0_15  // EXP1 Pin 5 (SCK)
131
+    //  EXP2 Pins 
132
+    #define BTN_EN2                        P3_26  // EXP2 Pin 3
133
+    #define BTN_EN1                        P3_25  // EXP2 Pin 5
134
+    
135
+    /*
136
+      SD Support
137
+    
138
+      For the RRD GLCD it CANNOT share the same SPI as the LCD so it must be
139
+      hooked up to the onboard SDCard SPI and use a spare pin for the SDCS.
140
+      Also note that an external SDCard sharing the SPI port with the
141
+      onboard/internal SDCard must be ejected before rebooting as the bootloader
142
+      does not like the external card. NOTE Smoothie will not boot if the external
143
+      sdcard is inserted in the RRD LCD sdcard slot at boot time, it must be
144
+      inserted after it has booted.
145
+    */
146
+
147
+    #define MISO_PIN                       P0_08  // EXP2 Pin 1 (PB3, SD_MISO)
148
+    #define SCK_PIN                        P0_07  // EXP2 Pin 2 (SD_SCK)    
149
+    #define SS_PIN                         P0_28  // EXP2 Pin 4 (SD_CSEL, SD_CS)
150
+    #define MOSI_PIN                       P0_09  // EXP2 Pin 6 (PB2, SD_MOSI)
151
+    #define SD_DETECT_PIN                  P0_27  // EXP2 Pin 7 (SD_CD, SD_DET)
152
+    
153
+  #else
154
+    #error "Marlin's Smoothieboard support cannot drive your LCD."
155
+  #endif
115 156
 
116 157
 #endif
117 158
 

読み込み中…
キャンセル
保存