ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
advanceddisplay.h
Go to the documentation of this file.
1
/*
2
advanceddisplay.h - display functions class
3
4
Copyright (c) 2014 Luc Lebosse. All rights reserved.
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
10
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#define SPLASH_SCREEN 0
22
#define CALIBRATION_SCREEN 1
23
#define MAIN_SCREEN 2
24
25
#ifndef _ADVANCEDDISPLAY_H
26
#define _ADVANCEDDISPLAY_H
27
28
29
class
Display
30
{
31
public
:
32
Display
();
33
~Display
();
34
bool
begin
();
35
void
end
();
36
void
handle
();
37
bool
display_IP
(
bool
force =
false
);
38
bool
display_network_status
(
bool
force =
false
);
39
void
show_screenID
(uint8_t screenID);
40
void
update_screen
(
bool
force=
false
);
41
void
clear_screen
(
bool
force=
false
);
42
void
progress
(uint8_t v);
43
void
SetStatus
(
const
char
* status);
44
bool
startCalibration
();
45
bool
snapshot
(
char
* filename =
nullptr
);
46
private
:
47
bool
_started;
48
uint8_t _screenID;
49
uint _screenwidth;
50
uint _screenheight;
51
String _status;
52
};
53
54
extern
Display
esp3d_display
;
55
56
#endif //_ADVANCEDDISPLAY_H
57
Display::show_screenID
void show_screenID(uint8_t screenID)
Display::end
void end()
Display::begin
bool begin()
Display::~Display
~Display()
Display::snapshot
bool snapshot(char *filename=nullptr)
Display::SetStatus
void SetStatus(const char *status)
Display
Definition:
advanceddisplay.h:29
Display::display_network_status
bool display_network_status(bool force=false)
Display::Display
Display()
Display::update_screen
void update_screen(bool force=false)
Display::progress
void progress(uint8_t v)
esp3d_display
Display esp3d_display
Display::display_IP
bool display_IP(bool force=false)
Display::handle
void handle()
Display::startCalibration
bool startCalibration()
Display::clear_screen
void clear_screen()
esp3d
src
modules
display
advanceddisplay.h
Generated by
1.8.17