ESP3D  3.0
Firmware for ESP boards connected to 3D Printer
defines.h
Go to the documentation of this file.
1 /*
2  defines.h - ESP3D defines 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 
21 #ifndef _DEFINES_ESP3D_H
22 #define _DEFINES_ESP3D_H
23 
24 //Settings
25 #define SETTINGS_IN_EEPROM 1
26 #define SETTINGS_IN_PREFERENCES 2
27 
28 //Debug
29 #define DEBUG_OUTPUT_SERIAL0 1
30 #define DEBUG_OUTPUT_SERIAL1 2
31 #define DEBUG_OUTPUT_SERIAL2 3
32 #define DEBUG_OUTPUT_TELNET 4
33 #define DEBUG_OUTPUT_WEBSOCKET 5
34 
35 
36 //Serial
37 #define USE_SERIAL_0 1
38 #define USE_SERIAL_1 2
39 #define USE_SERIAL_2 3
40 
41 //Display
42 #define OLED_I2C_SSD1306 1
43 #define OLED_I2C_SSDSH1106 2
44 #define TFT_SPI_ILI9341_320X240 3
45 #define TFT_SPI_ILI9488_480X320 4
46 
47 //UI type for display
48 #define UI_TYPE_BASIC 1
49 #define UI_TYPE_ADVANCED 2
50 #define UI_COLORED 1
51 #define UI_MONOCHROME 2
52 
53 //SD connection
54 #define ESP_NO_SD 0
55 #define ESP_DIRECT_SD 1
56 #define ESP_SHARED_SD 2
57 
58 //SD mount point
59 #define ESP_SD_ROOT 1
60 #define ESP_SD_SUB_SD 2
61 #define ESP_SD_SUB_EXT 3
62 
63 //Touch
64 #define XPT2046_SPI 1
65 
66 //Input
67 #define ROTARY_ENCODER 1
68 
69 //File systems
70 #define ESP_SPIFFS_FILESYSTEM 1
71 #define ESP_FAT_FILESYSTEM 2
72 #define ESP_LITTLEFS_FILESYSTEM 3
73 
74 //SD READER FS type supported
75 #define ESP_SD_NATIVE 1
76 #define ESP_SDIO 2
77 #define ESP_SDFAT 3
78 
79 //SD state
80 #define ESP_SDCARD_IDLE 0
81 #define ESP_SDCARD_NOT_PRESENT 1
82 #define ESP_SDCARD_BUSY 2
83 
84 //Notifications
85 #define ESP_PUSHOVER_NOTIFICATION 1
86 #define ESP_EMAIL_NOTIFICATION 2
87 #define ESP_LINE_NOTIFICATION 3
88 
89 //DHT
90 #define NO_DHT_DEVICE 0
91 #define DHT11_DEVICE 1
92 #define DHT22_DEVICE 2
93 #define USE_CELSIUS 1
94 #define USE_FAHRENHEIT 2
95 
96 //Camera
97 #define CAMERA_MODEL_CUSTOM 0
98 #define CAMERA_MODEL_ESP_EYE 1
99 #define CAMERA_MODEL_M5STACK_PSRAM 2
100 #define CAMERA_MODEL_M5STACK_WIDE 3
101 #define CAMERA_MODEL_AI_THINKER 4
102 #define CAMERA_MODEL_WROVER_KIT 5
103 
104 //Errors code
105 #define ESP_ERROR_AUTHENTICATION 1
106 #define ESP_ERROR_FILE_CREATION 2
107 #define ESP_ERROR_FILE_WRITE 3
108 #define ESP_ERROR_UPLOAD 4
109 #define ESP_ERROR_NOT_ENOUGH_SPACE 5
110 #define ESP_ERROR_UPLOAD_CANCELLED 6
111 #define ESP_ERROR_FILE_CLOSE 7
112 #define ESP_ERROR_NO_SD 8
113 #define ESP_ERROR_MOUNT_SD 9
114 #define ESP_ERROR_RESET_NUMBERING 10
115 #define ESP_ERROR_BUFFER_OVERFLOW 11
116 #define ESP_ERROR_START_UPLOAD 12
117 #define ESP_ERROR_SIZE 13
118 
119 //File system
120 #define ESP_FILE_READ 0
121 #define ESP_FILE_WRITE 1
122 #define ESP_FILE_APPEND 2
123 
124 #define FS_ROOT 0
125 #define FS_FLASH 1
126 #define FS_SD 2
127 #define FS_USBDISK 3
128 #define FS_UNKNOWN 254
129 #define MAX_FS 3
130 
131 #endif //_DEFINES_ESP3D_H