Skip to content

Commit

Permalink
Clean up some pins
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 21, 2019
1 parent bd1ced1 commit 4581957
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 43 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/pins/linux/pins_RAMPS_LINUX.h
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
#endif

#if DISABLED(NEWPANEL)
// Buttons are attached to a shift register
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK 38
//#define SHIFT_LD 42
Expand Down
52 changes: 29 additions & 23 deletions Marlin/src/pins/mega/pins_MEGATRONICS_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,32 +115,38 @@
#define PS_ON_PIN 12
#define CASE_LIGHT_PIN 2

//
// LCD / Controller
//
#define BEEPER_PIN 64

#define LCD_PINS_RS 14
#define LCD_PINS_ENABLE 15
#define LCD_PINS_D4 30
#define LCD_PINS_D5 31
#define LCD_PINS_D6 32
#define LCD_PINS_D7 33

// Buttons are directly attached using keypad
#define BTN_EN1 61
#define BTN_EN2 59
#define BTN_ENC 43

// Buttons that are attached using shift register of reprapworld keypad v1.1
#define SHIFT_CLK 63
#define SHIFT_LD 42
#define SHIFT_OUT 17
#define SHIFT_EN 17

//
// M3/M4/M5 - Spindle/Laser Control
//
#define SPINDLE_LASER_PWM_PIN 3 // Hardware PWM
#define SPINDLE_LASER_ENA_PIN 16 // Pullup!
#define SPINDLE_DIR_PIN 11

//
// LCD / Controller
//
#define BEEPER_PIN 64

#if HAS_SPI_LCD

#define LCD_PINS_RS 14
#define LCD_PINS_ENABLE 15
#define LCD_PINS_D4 30
#define LCD_PINS_D5 31
#define LCD_PINS_D6 32
#define LCD_PINS_D7 33

#if ENABLED(NEWPANEL)
// Buttons are directly attached using keypad
#define BTN_EN1 61
#define BTN_EN2 59
#define BTN_ENC 43
#else
// Buttons attached to shift register of reprapworld keypad v1.1
#define SHIFT_CLK 63
#define SHIFT_LD 42
#define SHIFT_OUT 17
#define SHIFT_EN 17
#endif

#endif // HAS_SPI_LCD
2 changes: 1 addition & 1 deletion Marlin/src/pins/rambo/pins_RAMBO.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
// No Beeper added
#define BEEPER_PIN 33

// buttons are attached to a shift register
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK 38
//#define SHIFT_LD 42
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/ramps/pins_RAMPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
#endif

#if DISABLED(NEWPANEL)
// Buttons are attached to a shift register
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK 38
//#define SHIFT_LD 42
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/ramps/pins_TT_OSCAR.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
#endif

#if DISABLED(NEWPANEL)
// Buttons are attached to a shift register
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK 38
//#define SHIFT_LD 42
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/ramps/pins_ULTIMAKER.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
#define LCD_PINS_D6 5
#define LCD_PINS_D7 6

// buttons are directly attached
// Buttons directly attached
#define BTN_EN1 40
#define BTN_EN2 42
#define BTN_ENC 19
Expand All @@ -138,7 +138,7 @@

#else // !NEWPANEL - Old style panel with shift register

// buttons are attached to a shift register
// Buttons attached to a shift register
#define SHIFT_CLK 38
#define SHIFT_LD 42
#define SHIFT_OUT 40
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
#define LCD_PINS_D6 5
#define LCD_PINS_D7 6

// buttons are directly attached
// Buttons directly attached
#define BTN_EN1 40
#define BTN_EN2 42
#define BTN_ENC 19
Expand All @@ -196,7 +196,7 @@

#else // !NEWPANEL - Old style panel with shift register

// buttons are attached to a shift register
// Buttons attached to a shift register
#define SHIFT_CLK 38
#define SHIFT_LD 42
#define SHIFT_OUT 40
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/stm32/pins_BEAST.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
#define LCD_PINS_D7 PB15
#if DISABLED(NEWPANEL)
#define BEEPER_PIN 33
// Buttons are attached to a shift register
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK 38
//#define SHIFT_LD 42
Expand Down Expand Up @@ -254,7 +254,7 @@
// Beeper on AUX-4
#define BEEPER_PIN 33

// buttons are directly attached to AUX-2
// Buttons directly attached to AUX-2
#if ENABLED(REPRAPWORLD_KEYPAD)
#define BTN_EN1 64
#define BTN_EN2 59
Expand Down
12 changes: 6 additions & 6 deletions Marlin/src/pins/stm32/pins_CHITU3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@
#define LCD_PINS_D7 PB15
#if DISABLED(NEWPANEL)
#define BEEPER_PIN 33
// Buttons are attached to a shift register
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK 38
//#define SHIFT_LD 42
//#define SHIFT_OUT 40
//#define SHIFT_EN 17
//#define SHIFT_CLK 38
//#define SHIFT_LD 42
//#define SHIFT_OUT 40
//#define SHIFT_EN 17
#endif
#endif

Expand Down Expand Up @@ -252,7 +252,7 @@
// Beeper on AUX-4
#define BEEPER_PIN 33

// buttons are directly attached to AUX-2
// Buttons directly attached to AUX-2
#if ENABLED(REPRAPWORLD_KEYPAD)
#define BTN_EN1 64
#define BTN_EN2 59
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/stm32/pins_STM32F1R.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
#define LCD_PINS_D7 PB15
#if DISABLED(NEWPANEL)
#define BEEPER_PIN 33
// Buttons are attached to a shift register
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK 38
//#define SHIFT_LD 42
Expand Down Expand Up @@ -230,7 +230,7 @@
// Beeper on AUX-4
#define BEEPER_PIN 33

// buttons are directly attached to AUX-2
// Buttons directly attached to AUX-2
#if ENABLED(REPRAPWORLD_KEYPAD)
#define BTN_EN1 64
#define BTN_EN2 59
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/stm32/pins_STM3R_MINI.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
#define LCD_PINS_D7 PB15
#if DISABLED(NEWPANEL)
#define BEEPER_PIN 33
// Buttons are attached to a shift register
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK 38
//#define SHIFT_LD 42
Expand Down Expand Up @@ -254,7 +254,7 @@
// Beeper on AUX-4
#define BEEPER_PIN 33

// buttons are directly attached to AUX-2
// Buttons directly attached to AUX-2
#if ENABLED(REPRAPWORLD_KEYPAD)
#define BTN_EN1 64
#define BTN_EN2 59
Expand Down

0 comments on commit 4581957

Please sign in to comment.