Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PrepareScreen.h Source File

PrepareScreen.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 PREPARESCREEN_H
00009 #define PREPARESCREEN_H
00010 
00011 #include "libs/Kernel.h"
00012 #include "libs/nuts_bolts.h"
00013 #include "libs/utils.h"
00014 #include "libs/Pin.h"
00015 #include "LcdBase.h"
00016 #include "Panel.h"
00017 #include "PanelScreen.h"
00018 
00019 class PrepareScreen : public PanelScreen
00020 {
00021 public:
00022     PrepareScreen();
00023 
00024     void on_refresh();
00025     void on_enter();
00026     void on_main_loop();
00027     void display_menu_line(uint16_t line);
00028     void clicked_menu_entry(uint16_t line);
00029     int idle_timeout_secs() { return 60; }
00030 
00031 private:
00032     PanelScreen *extruder_screen;
00033     PanelScreen *temp_screen;
00034     void preheat();
00035     void cooldown();
00036 
00037     string command;
00038 };
00039 
00040 #endif