Converge all I2C LCD branches (PANELOLU2, VIKI & PCF8575)
This includes refactoring the buttons code to remove a large amount of non-pin dependent duplication from pins.h.
This commit is contained in:
@@ -714,6 +714,10 @@ void lcd_update()
|
||||
|
||||
lcd_buttons_update();
|
||||
|
||||
#ifdef LCD_HAS_EXTRA_BUTTONS
|
||||
buttons |= lcd_read_extra_buttons(); // buttons which take too long to read in interrupt context
|
||||
#endif
|
||||
|
||||
#if (SDCARDDETECT > -1)
|
||||
if((IS_SD_INSERTED != lcd_oldcardstatus))
|
||||
{
|
||||
@@ -858,6 +862,11 @@ void lcd_buttons_update()
|
||||
}
|
||||
#endif//ULTIPANEL
|
||||
|
||||
bool lcd_clicked()
|
||||
{
|
||||
return LCD_CLICKED;
|
||||
}
|
||||
|
||||
/********************************/
|
||||
/** Float conversion utilities **/
|
||||
/********************************/
|
||||
|
||||
Reference in New Issue
Block a user