Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Smoothie by
WatchScreen.h
00001 /* 00002 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl). 00003 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. 00004 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. 00005 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>. 00006 */ 00007 00008 #ifndef WATCHSCREEN_H 00009 #define WATCHSCREEN_H 00010 00011 #include "PanelScreen.h" 00012 00013 class WatchScreen : public PanelScreen 00014 { 00015 public: 00016 WatchScreen(); 00017 void on_refresh(); 00018 void on_enter(); 00019 void on_main_loop(); 00020 void display_menu_line(uint16_t line); 00021 00022 private: 00023 void get_temp_data(); 00024 float get_current_speed(); 00025 void set_speed(); 00026 void get_current_pos(float *cp); 00027 void get_sd_play_info(); 00028 const char *get_status(); 00029 const char *get_network(); 00030 00031 bool speed_changed; 00032 bool issue_change_speed; 00033 int hotendtemp; 00034 int hotendtarget; 00035 int bedtemp; 00036 int bedtarget; 00037 int current_speed; 00038 float pos[3]; 00039 unsigned long elapsed_time; 00040 unsigned int sd_pcnt_played; 00041 00042 char *ipstr; 00043 }; 00044 00045 #endif
Generated on Tue Jul 12 2022 20:09:03 by
1.7.2
