|
@ -38,7 +38,7 @@ char lcd_status_message[LCD_WIDTH+1] = WELCOME_MSG; |
|
|
#include "ultralcd_implementation_hitachi_HD44780.h" |
|
|
#include "ultralcd_implementation_hitachi_HD44780.h" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
/** forward declerations **/ |
|
|
/** forward declarations **/ |
|
|
|
|
|
|
|
|
void copy_and_scalePID_i(); |
|
|
void copy_and_scalePID_i(); |
|
|
void copy_and_scalePID_d(); |
|
|
void copy_and_scalePID_d(); |
|
@ -62,7 +62,7 @@ static void lcd_set_contrast(); |
|
|
static void lcd_control_retract_menu(); |
|
|
static void lcd_control_retract_menu(); |
|
|
static void lcd_sdcard_menu(); |
|
|
static void lcd_sdcard_menu(); |
|
|
|
|
|
|
|
|
static void lcd_quick_feedback();//Cause an LCD refresh, and give the user visual or audiable feedback that something has happend
|
|
|
static void lcd_quick_feedback();//Cause an LCD refresh, and give the user visual or audible feedback that something has happened
|
|
|
|
|
|
|
|
|
/* Different types of actions that can be used in menu items. */ |
|
|
/* Different types of actions that can be used in menu items. */ |
|
|
static void menu_action_back(menuFunc_t data); |
|
|
static void menu_action_back(menuFunc_t data); |
|
@ -173,10 +173,10 @@ void* editValue; |
|
|
int32_t minEditValue, maxEditValue; |
|
|
int32_t minEditValue, maxEditValue; |
|
|
menuFunc_t callbackFunc; |
|
|
menuFunc_t callbackFunc; |
|
|
|
|
|
|
|
|
// placeholders for Ki and Kd edits
|
|
|
// place-holders for Ki and Kd edits
|
|
|
float raw_Ki, raw_Kd; |
|
|
float raw_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 */ |
|
|
static void lcd_status_screen() |
|
|
static void lcd_status_screen() |
|
|
{ |
|
|
{ |
|
|
if (lcd_status_update_delay) |
|
|
if (lcd_status_update_delay) |
|
@ -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.
|
|
|
|
|
|
|
|
|
if(lcd_oldcardstatus) |
|
|
if(lcd_oldcardstatus) |
|
|
{ |
|
|
{ |
|
@ -1470,7 +1470,7 @@ char *ftostr52(const float &x) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Callback for after editing PID i value
|
|
|
// Callback for after editing PID i value
|
|
|
// grab the pid i value out of the temp variable; scale it; then update the PID driver
|
|
|
// grab the PID i value out of the temp variable; scale it; then update the PID driver
|
|
|
void copy_and_scalePID_i() |
|
|
void copy_and_scalePID_i() |
|
|
{ |
|
|
{ |
|
|
#ifdef PIDTEMP |
|
|
#ifdef PIDTEMP |
|
@ -1480,7 +1480,7 @@ void copy_and_scalePID_i() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Callback for after editing PID d value
|
|
|
// Callback for after editing PID d value
|
|
|
// grab the pid d value out of the temp variable; scale it; then update the PID driver
|
|
|
// grab the PID d value out of the temp variable; scale it; then update the PID driver
|
|
|
void copy_and_scalePID_d() |
|
|
void copy_and_scalePID_d() |
|
|
{ |
|
|
{ |
|
|
#ifdef PIDTEMP |
|
|
#ifdef PIDTEMP |
|
|