Merge pull request #263 from wolfmanjm/upstreamedge
[clinton/Smoothieware.git] / src / modules / utils / panel / screens / WatchScreen.h
CommitLineData
3f038f58 1/*
35089dc7
JM
2 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl).
3 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.
4 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.
3f038f58 5 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
35089dc7
JM
6*/
7
8#ifndef WATCHSCREEN_H
9#define WATCHSCREEN_H
10
11#include "libs/Kernel.h"
12#include "libs/nuts_bolts.h"
13#include "libs/utils.h"
14#include "libs/Pin.h"
15#include "LcdBase.h"
16#include "Panel.h"
17#include "PanelScreen.h"
18
19class WatchScreen : public PanelScreen {
20 public:
21 WatchScreen();
3f038f58 22 void on_refresh();
35089dc7 23 void on_enter();
dcf86322 24 void on_main_loop();
35089dc7
JM
25 void display_menu_line(uint16_t line);
26
27 private:
28 void get_temp_data();
29 double get_current_speed();
dcf86322 30 void set_speed();
35089dc7
JM
31 void get_current_pos(double *cp);
32 void get_sd_play_info();
84267f43 33 const char* get_status();
3f038f58 34
dcf86322 35 bool speed_changed;
3f038f58 36 bool issue_change_speed;
35089dc7
JM
37 int hotendtemp;
38 int hotendtarget;
39 int bedtemp;
40 int bedtarget;
3f038f58 41 int current_speed;
35089dc7 42 double pos[3];
104293d2
JM
43 unsigned long elapsed_time;
44 unsigned int sd_pcnt_played;
35089dc7
JM
45};
46
47
48
49
50
51
52#endif