volatileuint8_tbuttons;//Contains the bits of the currently pressed buttons.
volatileuint8_tbuttons;//Contains the bits of the currently pressed buttons.
#else
#else
volatileuint8_tbuttons_reprapworld_keypad;// to store the reprapworld_keypad shiftregister values
volatileuint8_tbuttons_reprapworld_keypad;// to store the reprapworld_keypad shiftregister values
#endif
#endif
#ifdef LCD_HAS_SLOW_BUTTONS
#ifdef LCD_HAS_SLOW_BUTTONS
volatileuint8_tslow_buttons;//Contains the bits of the currently pressed buttons.
volatileuint8_tslow_buttons;//Contains the bits of the currently pressed buttons.
@ -162,7 +162,7 @@ bool lcd_oldcardstatus;
menuFunc_tcurrentMenu=lcd_status_screen;/* function pointer to the currently active menu */
menuFunc_tcurrentMenu=lcd_status_screen;/* function pointer to the currently active menu */
uint32_tlcd_next_update_millis;
uint32_tlcd_next_update_millis;
uint8_tlcd_status_update_delay;
uint8_tlcd_status_update_delay;
uint8_tlcdDrawUpdate=2;/* Set to none-zero when the LCD needs to draw, decreased after every draw. Set to 2 in LCD routines so the LCD gets atleast 1 full redraw (first redraw is partial) */
uint8_tlcdDrawUpdate=2;/* Set to none-zero when the LCD needs to draw, decreased after every draw. Set to 2 in LCD routines so the LCD gets atleast 1 full redraw (first redraw is partial) */
//prevMenu and prevEncoderPosition are used to store the previous menu location when editing settings.
//prevMenu and prevEncoderPosition are used to store the previous menu location when editing settings.
menuFunc_tprevMenu=NULL;
menuFunc_tprevMenu=NULL;
@ -173,10 +173,10 @@ void* editValue;
int32_tminEditValue,maxEditValue;
int32_tminEditValue,maxEditValue;
menuFunc_tcallbackFunc;
menuFunc_tcallbackFunc;
// placeholders for Ki and Kd edits
// place-holders for Ki and Kd edits
floatraw_Ki,raw_Kd;
floatraw_Ki,raw_Kd;
/* Main status screen. It's up to the implementation specific part to show what is needed. As this is very display dependend */
/* Main status screen. It's up to the implementation specific part to show what is needed. As this is very display dependent */
staticvoidlcd_status_screen()
staticvoidlcd_status_screen()
{
{
if(lcd_status_update_delay)
if(lcd_status_update_delay)
@ -1008,7 +1008,7 @@ void lcd_init()
WRITE(SHIFT_LD,HIGH);
WRITE(SHIFT_LD,HIGH);
#endif
#endif
#else // Not NEWPANEL
#else // Not NEWPANEL
#ifdef SR_LCD_2W_NL // Non latching 2 wire shiftregister
#ifdef SR_LCD_2W_NL // Non latching 2 wire shiftregister
pinMode(SR_DATA_PIN,OUTPUT);
pinMode(SR_DATA_PIN,OUTPUT);
pinMode(SR_CLK_PIN,OUTPUT);
pinMode(SR_CLK_PIN,OUTPUT);
#elif defined(SHIFT_CLK)
#elif defined(SHIFT_CLK)
@ -1055,7 +1055,7 @@ void lcd_update()
{
{
lcdDrawUpdate=2;
lcdDrawUpdate=2;
lcd_oldcardstatus=IS_SD_INSERTED;
lcd_oldcardstatus=IS_SD_INSERTED;
lcd_implementation_init();// to maybe revive the lcd if static electricty killed it.
lcd_implementation_init();// to maybe revive the LCD if static electricity killed it.