ESP3D  3.0
Firmware for ESP boards connected to 3D Printer
pins.h
Go to the documentation of this file.
1 /*
2  pins.h - pins definition 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 //Serial Pins
22 //-1 means use default pins of your board what ever the serial you choose
23 // * UART 0 possible options are (1, 3), (2, 3) or (15, 13)
24 // * UART 1 allows only TX on 2 if UART 0 is not (2, 3)
25 #define ESP_RX_PIN -1
26 #define ESP_TX_PIN -1
27 
28 //Pins for the support of connected camera
29 #if CAMERA_DEVICE == CAMERA_MODEL_CUSTOM
30 #define CAM_LED_PIN 4
31 #define CAM_PULLUP1 -1
32 #define CAM_PULLUP2 -1
33 #define PWDN_GPIO_NUM 32
34 #define RESET_GPIO_NUM -1
35 #define XCLK_GPIO_NUM 0
36 #define SIOD_GPIO_NUM 26
37 #define SIOC_GPIO_NUM 27
38 
39 #define Y9_GPIO_NUM 35
40 #define Y8_GPIO_NUM 34
41 #define Y7_GPIO_NUM 39
42 #define Y6_GPIO_NUM 36
43 #define Y5_GPIO_NUM 21
44 #define Y4_GPIO_NUM 19
45 #define Y3_GPIO_NUM 18
46 #define Y2_GPIO_NUM 5
47 #define VSYNC_GPIO_NUM 25
48 #define HREF_GPIO_NUM 23
49 #define PCLK_GPIO_NUM 22
50 #endif //CAMERA_MODEL_AI_THINKER
51 
52 #if CAMERA_DEVICE == CAMERA_MODEL_WROVER_KIT
53 #define CAM_LED_PIN -1
54 #define CAM_PULLUP1 -1
55 #define CAM_PULLUP2 -1
56 #define PWDN_GPIO_NUM -1
57 #define RESET_GPIO_NUM -1
58 #define XCLK_GPIO_NUM 21
59 #define SIOD_GPIO_NUM 26
60 #define SIOC_GPIO_NUM 27
61 
62 #define Y9_GPIO_NUM 35
63 #define Y8_GPIO_NUM 34
64 #define Y7_GPIO_NUM 39
65 #define Y6_GPIO_NUM 36
66 #define Y5_GPIO_NUM 19
67 #define Y4_GPIO_NUM 18
68 #define Y3_GPIO_NUM 5
69 #define Y2_GPIO_NUM 4
70 #define VSYNC_GPIO_NUM 25
71 #define HREF_GPIO_NUM 23
72 #define PCLK_GPIO_NUM 22
73 #endif //CAMERA_MODEL_WROVER_KIT
74 
75 #if CAMERA_DEVICE == CAMERA_MODEL_ESP_EYE
76 #define CAM_LED_PIN -1
77 #define CAM_PULLUP1 13
78 #define CAM_PULLUP2 14
79 #define PWDN_GPIO_NUM -1
80 #define RESET_GPIO_NUM -1
81 #define XCLK_GPIO_NUM 4
82 #define SIOD_GPIO_NUM 18
83 #define SIOC_GPIO_NUM 23
84 
85 #define Y9_GPIO_NUM 36
86 #define Y8_GPIO_NUM 37
87 #define Y7_GPIO_NUM 38
88 #define Y6_GPIO_NUM 39
89 #define Y5_GPIO_NUM 35
90 #define Y4_GPIO_NUM 14
91 #define Y3_GPIO_NUM 13
92 #define Y2_GPIO_NUM 34
93 #define VSYNC_GPIO_NUM 5
94 #define HREF_GPIO_NUM 27
95 #define PCLK_GPIO_NUM 25
96 #endif //CAMERA_MODEL_ESP_EYE
97 
98 #if CAMERA_DEVICE == CAMERA_MODEL_M5STACK_PSRAM
99 #define CAM_LED_PIN -1
100 #define CAM_PULLUP1 -1
101 #define CAM_PULLUP2 -1
102 #define PWDN_GPIO_NUM -1
103 #define RESET_GPIO_NUM 15
104 #define XCLK_GPIO_NUM 27
105 #define SIOD_GPIO_NUM 25
106 #define SIOC_GPIO_NUM 23
107 
108 #define Y9_GPIO_NUM 19
109 #define Y8_GPIO_NUM 36
110 #define Y7_GPIO_NUM 18
111 #define Y6_GPIO_NUM 39
112 #define Y5_GPIO_NUM 5
113 #define Y4_GPIO_NUM 34
114 #define Y3_GPIO_NUM 35
115 #define Y2_GPIO_NUM 32
116 #define VSYNC_GPIO_NUM 22
117 #define HREF_GPIO_NUM 26
118 #define PCLK_GPIO_NUM 21
119 #endif //CAMERA_MODEL_M5STACK_PSRAM
120 
121 #if CAMERA_DEVICE == CAMERA_MODEL_M5STACK_WIDE
122 #define CAM_LED_PIN -1
123 #define CAM_PULLUP1 -1
124 #define CAM_PULLUP2 -1
125 #define PWDN_GPIO_NUM -1
126 #define RESET_GPIO_NUM 15
127 #define XCLK_GPIO_NUM 27
128 #define SIOD_GPIO_NUM 22
129 #define SIOC_GPIO_NUM 23
130 
131 #define Y9_GPIO_NUM 19
132 #define Y8_GPIO_NUM 36
133 #define Y7_GPIO_NUM 18
134 #define Y6_GPIO_NUM 39
135 #define Y5_GPIO_NUM 5
136 #define Y4_GPIO_NUM 34
137 #define Y3_GPIO_NUM 35
138 #define Y2_GPIO_NUM 32
139 #define VSYNC_GPIO_NUM 25
140 #define HREF_GPIO_NUM 26
141 #define PCLK_GPIO_NUM 21
142 #endif //CAMERA_MODEL_M5STACK_WIDE
143 
144 #if CAMERA_DEVICE == CAMERA_MODEL_AI_THINKER
145 #define CAM_LED_PIN -1 //used by SD so must left unset
146 #define CAM_PULLUP1 -1
147 #define CAM_PULLUP2 -1
148 
149 #define PWDN_GPIO_NUM 32
150 #define RESET_GPIO_NUM -1
151 #define XCLK_GPIO_NUM 0
152 #define SIOD_GPIO_NUM 26
153 #define SIOC_GPIO_NUM 27
154 #define Y9_GPIO_NUM 35
155 #define Y8_GPIO_NUM 34
156 #define Y7_GPIO_NUM 39
157 #define Y6_GPIO_NUM 36
158 #define Y5_GPIO_NUM 21
159 #define Y4_GPIO_NUM 19
160 #define Y3_GPIO_NUM 18
161 #define Y2_GPIO_NUM 5
162 #define VSYNC_GPIO_NUM 25
163 #define HREF_GPIO_NUM 23
164 #define PCLK_GPIO_NUM 22
165 #endif //CAMERA_MODEL_AI_THINKER
166 
167 //Pins for the support of SD Card Reader
168 //-1 means use default pins of your board defined core
169 #define ESP_SD_CS_PIN -1
170 //These are hardcoded on ESP8266 to 12/13/14
171 //so modifications are ignored on ESP8266
172 #define ESP_SD_MISO_PIN -1
173 #define ESP_SD_MOSI_PIN -1
174 #define ESP_SD_SCK_PIN -1
175 
176 // For SDIO Connect the SD card to the following pins:
177 //SD Card | ESP32
178 // D2 12
179 // D3 13
180 // CMD 15
181 // VSS GND
182 // VDD 3.3V
183 // CLK 14
184 // VSS GND
185 // D0 2 (add 1K pull up after flashing)
186 // D1 4