ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
basic_SSD1306.h
Go to the documentation of this file.
1
/*
2
OLED_SSD1306.h - ESP3D display data file
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
#include "
esp3d_logo.h
"
21
//Screen size
22
#define SCREEN_WIDTH 128
23
#define SCREEN_HEIGHT 64
24
//Colors
25
#define TFT_BLACK BLACK
26
#define TFT_WHITE WHITE
27
#define SPLASH_FG TFT_BLACK
28
#define SPLASH_BG TFT_WHITE
29
#define SCREEN_BG TFT_BLACK
30
#define PROGRESS_FG TFT_WHITE
31
#define SIGNAL_FG TFT_WHITE
32
#define SSID_FG TFT_WHITE
33
#define IP_FG TFT_WHITE
34
#define STATUS_FG TFT_WHITE
35
36
//Fonts
37
#define FONTSIGNAL 2
38
#define FONTSSID 2
39
#define FONTIP 3
40
#define FONTSTATUS 2
41
42
//Positions
43
#define SIGNAL_X 128-27
44
#define SIGNAL_Y 0
45
#define SIGNAL_W 46
46
#define SIGNAL_H 10
47
48
#define SIGNAL_ICON_X 128-43
49
#define SIGNAL_ICON_Y 2
50
#define SIGNAL_ICON_W 15
51
#define SIGNAL_ICON_H 10
52
#define SIGNAL_ICON_W_BAR 3
53
#define SIGNAL_ICON_SPACER_X 1
54
55
#define SSID_AREA_X 0
56
#define SSID_AREA_Y 0
57
#define SSID_AREA_W 85
58
#define SSID_AREA_H 12
59
60
#define IP_AREA_X 0
61
#define IP_AREA_Y 16
62
#define IP_AREA_W 128
63
#define IP_AREA_H 16
64
65
#define STATUS_AREA_X 0
66
#define STATUS_AREA_Y 48
67
#define STATUS_AREA_W 128
68
#define STATUS_AREA_H 16
esp3d_logo.h
esp3d
src
modules
display
basic_SSD1306.h
Generated by
1.8.17