Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MarlinKimbra
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
MarlinKimbra
Commits
a381c11b
Commit
a381c11b
authored
Mar 23, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22 from simone97/patch-7
Added support for see the Power Consumption
parents
8cb58b10
9cabad56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
8 deletions
+26
-8
ultralcd_implementation_hitachi_HD44780.h
MarlinKimbra/ultralcd_implementation_hitachi_HD44780.h
+26
-8
No files found.
MarlinKimbra/ultralcd_implementation_hitachi_HD44780.h
View file @
a381c11b
...
@@ -621,18 +621,36 @@ static void lcd_implementation_status_screen()
...
@@ -621,18 +621,36 @@ static void lcd_implementation_status_screen()
#endif //LCD_PROGRESS_BAR
#endif //LCD_PROGRESS_BAR
//Display both Status message line and Filament display on the last line
//Display both Status message line and Filament display on the last line
#ifdef FILAMENT_LCD_DISPLAY
#if (defined(FILAMENT_SENSOR) && defined(FILWIDTH_PIN) && FILWIDTH_PIN >= 0) && defined(FILAMENT_LCD_DISPLAY) || (defined(POWER_CONSUMPTION) && defined(POWER_CONSUMPTION_PIN) && POWER_CONSUMPTION_PIN >= 0) && defined(POWER_CONSUMPTION_LCD_DISPLAY)
if
(
message_millis
+
5000
<=
millis
())
{
//display any status for the first 5 sec after screen is initiated
if
(
millis
()
<
message_millis
+
5000
)
{
//Display both Status message line and Filament display on the last line
lcd_printPGM
(
PSTR
(
"Dia "
));
lcd
.
print
(
lcd_status_message
);
}
#if (defined(POWER_CONSUMPTION) && defined(POWER_CONSUMPTION_PIN) && POWER_CONSUMPTION_PIN >= 0) && defined(POWER_CONSUMPTION_LCD_DISPLAY)
#if (defined(FILAMENT_SENSOR) && defined(FILWIDTH_PIN) && FILWIDTH_PIN >= 0) && defined(FILAMENT_LCD_DISPLAY)
else
if
(
millis
()
<
message_millis
+
10000
)
#else
else
#endif
{
lcd_printPGM
(
PSTR
(
"P:"
));
lcd
.
print
(
itostr3
(
power_consumption_meas
));
lcd_printPGM
(
PSTR
(
"W C:"
));
lcd
.
print
(
ltostr7
(
power_consumption_hour
));
lcd_printPGM
(
PSTR
(
"Wh"
));
}
#endif
#if (defined(FILAMENT_SENSOR) && defined(FILWIDTH_PIN) && FILWIDTH_PIN >= 0) && defined(FILAMENT_LCD_DISPLAY)
else
{
lcd_printPGM
(
PSTR
(
"D:"
));
lcd
.
print
(
ftostr12ns
(
filament_width_meas
));
lcd
.
print
(
ftostr12ns
(
filament_width_meas
));
lcd_printPGM
(
PSTR
(
"
V
"
));
lcd_printPGM
(
PSTR
(
"
mm F:
"
));
lcd
.
print
(
itostr3
(
100
.
0
*
volumetric_multiplier
[
FILAMENT_SENSOR_EXTRUDER_NUM
]));
lcd
.
print
(
itostr3
(
100
.
0
*
volumetric_multiplier
[
FILAMENT_SENSOR_EXTRUDER_NUM
]));
lcd
.
print
(
'%'
);
lcd
.
print
(
'%'
);
return
;
}
#endif //FILAMENT_LCD_DISPLAY
}
#else
lcd
.
print
(
lcd_status_message
);
lcd
.
print
(
lcd_status_message
);
#endif
}
}
static
void
lcd_implementation_drawmenu_generic
(
bool
sel
,
uint8_t
row
,
const
char
*
pstr
,
char
pre_char
,
char
post_char
)
{
static
void
lcd_implementation_drawmenu_generic
(
bool
sel
,
uint8_t
row
,
const
char
*
pstr
,
char
pre_char
,
char
post_char
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment