-
Notifications
You must be signed in to change notification settings - Fork 994
/
WatchScreen.h
45 lines (38 loc) · 1.47 KB
/
WatchScreen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl).
Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Smoothie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WATCHSCREEN_H
#define WATCHSCREEN_H
#include "PanelScreen.h"
class WatchScreen : public PanelScreen
{
public:
WatchScreen();
void on_refresh();
void on_enter();
void on_main_loop();
void display_menu_line(uint16_t line);
private:
void get_temp_data();
double get_current_speed();
void set_speed();
void get_current_pos(double *cp);
void get_sd_play_info();
const char *get_status();
const char *get_network();
bool speed_changed;
bool issue_change_speed;
int hotendtemp;
int hotendtarget;
int bedtemp;
int bedtarget;
int current_speed;
double pos[3];
unsigned long elapsed_time;
unsigned int sd_pcnt_played;
char *ipstr;
};
#endif