Skip to content

Commit 058bd19

Browse files
committed
Merge pull request #1310 from SmartArduino/master
Add espduino board
2 parents 4b90db4 + ae34caa commit 058bd19

File tree

4 files changed

+139
-0
lines changed

4 files changed

+139
-0
lines changed

boards.txt

+67
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,73 @@ generic.menu.ResetMethod.nodemcu.upload.resetmethod=nodemcu
180180
# generic.menu.FlashSize.16M.build.spiffs_end=0x1000000
181181
# generic.menu.FlashSize.16M.build.spiffs_blocksize=8192
182182

183+
##############################################################
184+
espduino.name=ESPDuino (ESP-13 Module)
185+
186+
espduino.upload.tool=esptool
187+
espduino.upload.speed=115200
188+
espduino.upload.resetmethod=ck
189+
espduino.upload.maximum_size=1044464
190+
espduino.upload.maximum_data_size=81920
191+
espduino.upload.wait_for_upload_port=true
192+
espduino.serial.disableDTR=true
193+
espduino.serial.disableRTS=true
194+
195+
espduino.build.mcu=esp8266
196+
espduino.build.f_cpu=80000000L
197+
espduino.build.board=ESP8266_ESP13
198+
espduino.build.core=esp8266
199+
espduino.build.variant=espduino
200+
espduino.build.flash_mode=dio
201+
espduino.build.flash_size=4M
202+
espduino.build.flash_freq=40
203+
204+
espduino.menu.CpuFrequency.80=80 MHz
205+
espduino.menu.CpuFrequency.80.build.f_cpu=80000000L
206+
espduino.menu.CpuFrequency.160=160 MHz
207+
espduino.menu.CpuFrequency.160.build.f_cpu=160000000L
208+
209+
espduino.menu.UploadTool.esptool=Serial
210+
espduino.menu.UploadTool.esptool.upload.tool=esptool
211+
espduino.menu.UploadTool.esptool.upload.verbose=-vv
212+
espduino.menu.UploadTool.espota=OTA
213+
espduino.menu.UploadTool.espota.upload.tool=espota
214+
215+
espduino.menu.UploadSpeed.115200=115200
216+
espduino.menu.UploadSpeed.115200.upload.speed=115200
217+
espduino.menu.UploadSpeed.9600=9600
218+
espduino.menu.UploadSpeed.9600.upload.speed=9600
219+
espduino.menu.UploadSpeed.57600=57600
220+
espduino.menu.UploadSpeed.57600.upload.speed=57600
221+
espduino.menu.UploadSpeed.256000.windows=256000
222+
espduino.menu.UploadSpeed.256000.upload.speed=256000
223+
espduino.menu.UploadSpeed.230400.linux=230400
224+
espduino.menu.UploadSpeed.230400.macosx=230400
225+
espduino.menu.UploadSpeed.230400.macosx=230400
226+
espduino.menu.UploadSpeed.230400.upload.speed=230400
227+
espduino.menu.UploadSpeed.460800.linux=460800
228+
espduino.menu.UploadSpeed.460800.macosx=460800
229+
espduino.menu.UploadSpeed.460800.upload.speed=460800
230+
espduino.menu.UploadSpeed.512000.windows=512000
231+
espduino.menu.UploadSpeed.512000.upload.speed=512000
232+
espduino.menu.UploadSpeed.921600=921600
233+
espduino.menu.UploadSpeed.921600.upload.speed=921600
234+
235+
espduino.menu.FlashSize.4M3M=4M (3M SPIFFS)
236+
espduino.menu.FlashSize.4M3M.build.flash_size=4M
237+
espduino.menu.FlashSize.4M3M.build.flash_ld=eagle.flash.4m.ld
238+
espduino.menu.FlashSize.4M3M.build.spiffs_start=0x100000
239+
espduino.menu.FlashSize.4M3M.build.spiffs_end=0x3FB000
240+
espduino.menu.FlashSize.4M3M.build.spiffs_blocksize=8192
241+
espduino.menu.FlashSize.4M3M.build.spiffs_pagesize=256
242+
243+
espduino.menu.FlashSize.4M1M=4M (1M SPIFFS)
244+
espduino.menu.FlashSize.4M1M.build.flash_size=4M
245+
espduino.menu.FlashSize.4M1M.build.flash_ld=eagle.flash.4m1m.ld
246+
espduino.menu.FlashSize.4M1M.build.spiffs_start=0x300000
247+
espduino.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
248+
espduino.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
249+
espduino.menu.FlashSize.4M1M.build.spiffs_pagesize=256
183250
##############################################################
184251
huzzah.name=Adafruit HUZZAH ESP8266
185252

doc/filesystem.md

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Olimex MOD-WIFI-ESP8266(-DEV)| 2M | 1M
4949
SparkFun Thing | 512k | 64k
5050
SweetPea ESP-210 | 4M | 1M, 3M
5151
WeMos D1 & D1 mini | 4M | 1M, 3M
52+
ESPDuino | 4M | 1M, 3M
5253

5354
**Note:** to use any of file system functions in the sketch, add the following include to the sketch:
5455

package/package_esp8266com_index.template.json

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
},
5555
{
5656
"name": "WifInfo"
57+
},
58+
{
59+
"name": "ESPDuino"
5760
}
5861
],
5962
"toolsDependencies": [

variants/ESPDuino/pins_arduino.h

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/*
2+
pins_arduino.h - Pin definition functions for Arduino
3+
Part of Arduino - http://www.arduino.cc/
4+
Copyright (c) 2007 David A. Mellis
5+
Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015.
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+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
You should have received a copy of the GNU Lesser General
15+
Public License along with this library; if not, write to the
16+
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
17+
Boston, MA 02111-1307 USA
18+
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
19+
*/
20+
/*
21+
Modified by Doit.am team
22+
www.doit.am
23+
*/
24+
25+
#ifndef Pins_Arduino_h
26+
#define Pins_Arduino_h
27+
28+
#define EXTERNAL_NUM_INTERRUPTS 16
29+
#define NUM_DIGITAL_PINS 17
30+
#define NUM_ANALOG_INPUTS 1
31+
32+
#define analogInputToDigitalPin(p) ((p > 0)?NOT_A_PIN:0)
33+
#define digitalPinToInterrupt(p) (((p) < EXTERNAL_NUM_INTERRUPTS)?p:NOT_A_PIN)
34+
#define digitalPinHasPWM(p) (((p) < NUM_DIGITAL_PINS)?p:NOT_A_PIN)
35+
36+
static const uint8_t SDA = 4;
37+
static const uint8_t SCL = 5;
38+
39+
static const uint8_t SS = 15;
40+
static const uint8_t MOSI = 13;
41+
static const uint8_t MISO = 12;
42+
static const uint8_t SCK = 14;
43+
44+
static const uint8_t BUILTIN_LED = 16;
45+
46+
static const uint8_t A0 = 17;
47+
48+
// These serial port names are intended to allow libraries and architecture-neutral
49+
// sketches to automatically default to the correct port name for a particular type
50+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
51+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
52+
//
53+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
54+
//
55+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
56+
//
57+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
58+
//
59+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
60+
//
61+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
62+
// pins are NOT connected to anything by default.
63+
#define SERIAL_PORT_MONITOR Serial
64+
#define SERIAL_PORT_USBVIRTUAL Serial
65+
#define SERIAL_PORT_HARDWARE Serial
66+
#define SERIAL_PORT_HARDWARE_OPEN Serial
67+
68+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)