|
|
|
@ -106,17 +106,49 @@
|
|
|
|
|
|
|
|
|
|
#define BEEPER_PIN 61
|
|
|
|
|
|
|
|
|
|
#define LCD_PINS_RS 32
|
|
|
|
|
#define LCD_PINS_ENABLE 31
|
|
|
|
|
#define LCD_PINS_D4 14
|
|
|
|
|
#define LCD_PINS_D5 30
|
|
|
|
|
#define LCD_PINS_D6 39
|
|
|
|
|
#define LCD_PINS_D7 15
|
|
|
|
|
|
|
|
|
|
#define SHIFT_CLK 43
|
|
|
|
|
#define SHIFT_LD 35
|
|
|
|
|
#define SHIFT_OUT 34
|
|
|
|
|
#define SHIFT_EN 44
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(DOGLCD)
|
|
|
|
|
|
|
|
|
|
#if ENABLED(U8GLIB_ST7920)
|
|
|
|
|
|
|
|
|
|
#define LCD_PINS_RS 56 //CS chip select /SS chip slave select
|
|
|
|
|
#define LCD_PINS_ENABLE 51 //SID (MOSI)
|
|
|
|
|
#define LCD_PINS_D4 52 //SCK (CLK) clock
|
|
|
|
|
|
|
|
|
|
#define BTN_EN1 44
|
|
|
|
|
#define BTN_EN2 45
|
|
|
|
|
#define BTN_ENC 33
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define SD_DETECT_PIN 35
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
#define LCD_PINS_RS 32
|
|
|
|
|
#define LCD_PINS_ENABLE 31
|
|
|
|
|
#define LCD_PINS_D4 14
|
|
|
|
|
#define LCD_PINS_D5 30
|
|
|
|
|
#define LCD_PINS_D6 39
|
|
|
|
|
#define LCD_PINS_D7 15
|
|
|
|
|
|
|
|
|
|
#define SHIFT_CLK 43
|
|
|
|
|
#define SHIFT_LD 35
|
|
|
|
|
#define SHIFT_OUT 34
|
|
|
|
|
#define SHIFT_EN 44
|
|
|
|
|
//buttons are directly attached using keypad
|
|
|
|
|
#define BTN_EN1 44
|
|
|
|
|
#define BTN_EN2 45
|
|
|
|
|
#define BTN_ENC 33 //the click
|
|
|
|
|
|
|
|
|
|
#define BLEN_C 2
|
|
|
|
|
#define BLEN_B 1
|
|
|
|
|
#define BLEN_A 0
|
|
|
|
|
|
|
|
|
|
#define SD_DETECT_PIN 56 // Megatronics v3.1 only
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Buttons are directly attached using keypad
|
|
|
|
|
#define BTN_EN1 44
|
|
|
|
|