Commit | Line | Data |
---|---|---|
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 | ||
35089dc7 JM |
11 | #include "PanelScreen.h" |
12 | ||
c77d6dae JM |
13 | #include <tuple> |
14 | ||
ca6effd7 JM |
15 | class WatchScreen : public PanelScreen |
16 | { | |
17 | public: | |
18 | WatchScreen(); | |
383c9c1c | 19 | ~WatchScreen(); |
ca6effd7 JM |
20 | void on_refresh(); |
21 | void on_enter(); | |
22 | void on_main_loop(); | |
23 | void display_menu_line(uint16_t line); | |
24 | ||
25 | private: | |
c77d6dae | 26 | void get_current_status(); |
1ad23cd3 | 27 | float get_current_speed(); |
ca6effd7 | 28 | void set_speed(); |
1ad23cd3 | 29 | void get_current_pos(float *cp); |
ca6effd7 JM |
30 | void get_sd_play_info(); |
31 | const char *get_status(); | |
d4ee6ee2 | 32 | const char *get_network(); |
c77d6dae | 33 | void *getTemperatures(uint16_t heater_cs); |
ca6effd7 | 34 | |
c77d6dae | 35 | uint32_t update_counts; |
ca6effd7 | 36 | int current_speed; |
1ad23cd3 | 37 | float pos[3]; |
ca6effd7 JM |
38 | unsigned long elapsed_time; |
39 | unsigned int sd_pcnt_played; | |
d4ee6ee2 | 40 | char *ipstr; |
c77d6dae JM |
41 | |
42 | struct { | |
43 | bool speed_changed:1; | |
44 | bool issue_change_speed:1; | |
45 | bool fan_state:1; | |
46 | }; | |
35089dc7 JM |
47 | }; |
48 | ||
35089dc7 | 49 | #endif |