🧑💻 Fix up some AUX / EXP pins (#23577)
This commit is contained in:
committed by
Scott Lahteine
parent
2142456a25
commit
2d032b734c
@@ -146,7 +146,7 @@
|
||||
#define FAN1_PIN -1
|
||||
|
||||
//
|
||||
//filament run out sensor
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#if EITHER(Z6S_ZFAULT, Z6BS_ZFAULT)
|
||||
#define FIL_RUNOUT_PIN 13
|
||||
@@ -162,32 +162,38 @@
|
||||
#endif
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
/*===================================================
|
||||
* ZMIB Version 1 - EXP1 Connector
|
||||
* MOSI(D5) TX1(D11) ENA(D12) ENC(D29/A2) 5V
|
||||
* SCK(D7) RX1(D10) SCS(D4) ENB(D2) GND
|
||||
*===================================================
|
||||
* ZMIB Version 2 - EXP1 Connector
|
||||
* MOSI(D5) TX1(D11) ENA(D12) ENC(D29/A2) 5V
|
||||
* SCK(D7) RX1(D10) SCS(D3) ENB(D2) GND
|
||||
*===================================================
|
||||
* LCD 128x64
|
||||
*==================================================*/
|
||||
/** EXP1
|
||||
* ------
|
||||
* (MOSI) D5 |10 9 | D7 (SCK)
|
||||
* (CS) D11 | 8 7 | D10 (DC/D4)
|
||||
* (EN2) D12 6 5 | D4 or D3 (EN/RS)
|
||||
* (ENC) D29 | 4 3 | D2 (EN1)
|
||||
* (GND) | 2 1 | (5V)
|
||||
* ------
|
||||
*/
|
||||
#define EXP1_03_PIN 2
|
||||
#define EXP1_04_PIN 29
|
||||
#ifndef IS_ZMIB_V2
|
||||
#define EXP1_05_PIN 4 // ZMIB V1
|
||||
#else
|
||||
#define EXP1_05_PIN 3 // ZMIB V2
|
||||
#endif
|
||||
#define EXP1_06_PIN 12
|
||||
#define EXP1_07_PIN 10
|
||||
#define EXP1_08_PIN 11
|
||||
#define EXP1_09_PIN 7
|
||||
#define EXP1_10_PIN 5
|
||||
|
||||
#if ENABLED(ZONESTAR_12864LCD)
|
||||
//
|
||||
// LCD 128x64
|
||||
//
|
||||
#define LCDSCREEN_NAME "ZONESTAR_12864LCD"
|
||||
#define LCDSCREEN_NAME "ZONESTAR_12864LCD"
|
||||
#define FORCE_SOFT_SPI
|
||||
//#define LCD_SDSS 11
|
||||
#define LCD_PINS_RS 11 // ST7920_CS_PIN LCD_PIN_RS (PIN4 of LCD module)
|
||||
#ifdef IS_ZMIB_V2
|
||||
#define LCD_PINS_ENABLE 3 // ST7920_DAT_PIN LCD_PIN_R/W (PIN5 of LCD module)
|
||||
#else
|
||||
#define LCD_PINS_ENABLE 4 // ST7920_DAT_PIN LCD_PIN_R/W (PIN5 of LCD module)
|
||||
#endif
|
||||
#define LCD_PINS_D4 10 // ST7920_CLK_PIN LCD_PIN_ENABLE (PIN6 of LCD module)
|
||||
//#define LCD_SDSS EXP1_08_PIN
|
||||
#define LCD_PINS_RS EXP1_08_PIN // ST7920_CS_PIN (LCD module pin 4)
|
||||
#define LCD_PINS_ENABLE EXP1_05_PIN // ST7920_DAT_PIN (LCD module pin 5)
|
||||
#define LCD_PINS_D4 EXP1_07_PIN // ST7920_CLK_PIN (LCD module pin 6)
|
||||
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_2_NOP
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_2_NOP
|
||||
@@ -199,34 +205,28 @@
|
||||
//
|
||||
#define LCDSCREEN_NAME "ZONESTAR 12864OLED"
|
||||
#define FORCE_SOFT_SPI
|
||||
#ifdef IS_ZMIB_V2
|
||||
#define LCD_PINS_RS 3 // RESET
|
||||
#else
|
||||
#define LCD_PINS_RS 4 // RESET
|
||||
#endif
|
||||
#define LCD_PINS_DC 10 // DC
|
||||
#define DOGLCD_CS 11 // CS
|
||||
#define LCD_PINS_RS EXP1_05_PIN
|
||||
#define LCD_PINS_DC EXP1_07_PIN
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
|
||||
#if ENABLED(OLED_HW_IIC)
|
||||
#error "Oops! can't choose HW IIC for ZMIB board!!"
|
||||
#elif ENABLED(OLED_HW_SPI)
|
||||
// HW SPI
|
||||
#define DOGLCD_A0 LCD_PINS_DC // A0 = DC
|
||||
#else
|
||||
// SW SPI
|
||||
#define DOGLCD_A0 LCD_PINS_DC // A0 = DC
|
||||
#define DOGLCD_MOSI AVR_MOSI_PIN // SDA
|
||||
#define DOGLCD_SCK AVR_SCK_PIN // SCK
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
#if DISABLED(OLED_HW_SPI)
|
||||
#define DOGLCD_MOSI AVR_MOSI_PIN // Software SPI
|
||||
#define DOGLCD_SCK AVR_SCK_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// All the above are also RRDSC with rotary encoder
|
||||
//
|
||||
#if IS_RRD_SC
|
||||
#define BTN_EN1 2
|
||||
#define BTN_EN2 12
|
||||
#define BTN_ENC 29
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_04_PIN
|
||||
#define BEEPER_PIN -1
|
||||
#define KILL_PIN -1
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user