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
09743683
Commit
09743683
authored
Mar 23, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from simone97/patch-9
Added support for see the Power Consumption
parents
c170bfd1
12a75288
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
dogm_lcd_implementation.h
MarlinKimbra/dogm_lcd_implementation.h
+24
-5
No files found.
MarlinKimbra/dogm_lcd_implementation.h
View file @
09743683
...
...
@@ -267,20 +267,39 @@ static void lcd_implementation_status_screen() {
// Status line
u8g
.
setFont
(
FONT_STATUSMENU
);
u8g
.
setPrintPos
(
0
,
63
);
#ifndef FILAMENT_LCD_DISPLAY
u8g
.
print
(
lcd_status_message
);
#else
#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
(
millis
()
<
message_millis
+
5000
)
{
//Display both Status message line and Filament display on the last line
u8g
.
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:"
));
u8g
.
print
(
itostr3
(
power_consumption_meas
));
lcd_printPGM
(
PSTR
(
"W C:"
));
u8g
.
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
(
"
dia
:"
));
lcd_printPGM
(
PSTR
(
"
D
:"
));
u8g
.
print
(
ftostr12ns
(
filament_width_meas
));
lcd_printPGM
(
PSTR
(
"
factor
:"
));
lcd_printPGM
(
PSTR
(
"
mm F
:"
));
u8g
.
print
(
itostr3
(
volumetric_multiplier
[
active_extruder
]
*
100
));
u8g
.
print
(
'%'
);
}
#endif
#else
u8g
.
print
(
lcd_status_message
);
#endif
}
static
void
lcd_implementation_mark_as_selected
(
uint8_t
row
,
bool
isSelected
)
{
...
...
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