|
Panel buttons don't work October 21, 2019 06:03AM |
Registered: 15 years ago Posts: 1,477 |
#define REPRAP_DISCOUNT_SMART_CONTROLLER
// LCD Display input pins // #if ENABLED(NEWPANEL) #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) #define BTN_BACK 31 // New line ********** #define BEEPER_PIN 45 // was 37 ********** #if ENABLED(CR10_STOCKDISPLAY) #define BTN_EN1 17 #define BTN_EN2 23 #else #define BTN_EN1 37 // was 31 ********** #define BTN_EN2 35 // was 33 ********** #endif #define BTN_ENC 33 // was 35 ********** // #define SD_DETECT_PIN 49 // #define KILL_PIN 41 #if ENABLED(BQ_LCD_SMART_CONTROLLER) #define LCD_BACKLIGHT_PIN 39 #endif
|
Re: Panel buttons don't work October 23, 2019 04:19AM |
Registered: 15 years ago Posts: 1,477 |
|
Re: Panel buttons don't work October 23, 2019 05:08AM |
Admin Registered: 15 years ago Posts: 7,340 |
#if ENABLED(NEWPANEL)
#if BUTTON_EXISTS(EN1)
SET_INPUT_PULLUP(BTN_EN1);
#endif
#if BUTTON_EXISTS(EN2)
SET_INPUT_PULLUP(BTN_EN2);
#endif
#if BUTTON_EXISTS(ENC)
SET_INPUT_PULLUP(BTN_ENC);
#endif
add this to the end of the above code
#if BUTTON_EXISTS(BACK)
SET_INPUT_PULLUP(BTN_BACK);
#endif
|
Re: Panel buttons don't work October 23, 2019 01:57PM |
Registered: 15 years ago Posts: 1,477 |
|
Re: Panel buttons don't work October 23, 2019 07:02PM |
Admin Registered: 15 years ago Posts: 7,340 |