Skip to content

Commit 3f26dc6

Browse files
committed
Merge pull request #351 from adafruit/esp8266
Add Adafruit HUZZAH ESP8266 (ESP-12 breakout) to Board Manager Package
2 parents 9a86df1 + 83f0a70 commit 3f26dc6

File tree

3 files changed

+115
-1
lines changed

3 files changed

+115
-1
lines changed

build/build_board_manager_package.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ cat << EOF > package_esp8266com_index.json
6464
},
6565
{
6666
"name":"NodeMCU 1.0 (ESP-12E Module)"
67+
},
68+
{
69+
"name":"Adafruit HUZZAH ESP8266 (ESP-12)"
6770
}
68-
6971
],
7072
"toolsDependencies":[ {
7173
"packager":"esp8266",

hardware/esp8266com/esp8266/boards.txt

+42
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,48 @@ nodemcuv2.menu.UploadSpeed.512000.upload.speed=512000
282282
nodemcuv2.menu.UploadSpeed.921600=921600
283283
nodemcuv2.menu.UploadSpeed.921600.upload.speed=921600
284284

285+
##############################################################
286+
huzzah.name=Adafruit HUZZAH ESP8266
287+
288+
huzzah.upload.tool=esptool
289+
huzzah.upload.speed=115200
290+
huzzah.upload.resetmethod=ck
291+
huzzah.upload.maximum_size=983040
292+
huzzah.upload.maximum_data_size=81920
293+
huzzah.upload.wait_for_upload_port=true
294+
huzzah.serial.disableDTR=true
295+
huzzah.serial.disableRTS=true
296+
297+
huzzah.build.mcu=esp8266
298+
huzzah.build.f_cpu=80000000L
299+
huzzah.build.board=ESP8266_ESP12
300+
huzzah.build.core=esp8266
301+
huzzah.build.variant=adafruit
302+
huzzah.build.flash_mode=qio
303+
huzzah.build.flash_size=4M
304+
huzzah.build.flash_freq=40
305+
huzzah.build.flash_ld=eagle.flash.4m.ld
306+
huzzah.build.spiffs_start=0x100000
307+
huzzah.build.spiffs_end=0x3FB000
308+
huzzah.build.spiffs_pagesize=256
309+
huzzah.build.spiffs_blocksize=8192
310+
311+
huzzah.menu.CpuFrequency.80=80 MHz
312+
huzzah.menu.CpuFrequency.80.build.f_cpu=80000000L
313+
huzzah.menu.CpuFrequency.160=160 MHz
314+
huzzah.menu.CpuFrequency.160.build.f_cpu=160000000L
315+
316+
huzzah.menu.UploadSpeed.115200=115200
317+
huzzah.menu.UploadSpeed.115200.upload.speed=115200
318+
huzzah.menu.UploadSpeed.9600=9600
319+
huzzah.menu.UploadSpeed.9600.upload.speed=9600
320+
huzzah.menu.UploadSpeed.57600=57600
321+
huzzah.menu.UploadSpeed.57600.upload.speed=57600
322+
huzzah.menu.UploadSpeed.256000=256000
323+
huzzah.menu.UploadSpeed.256000.upload.speed=256000
324+
huzzah.menu.UploadSpeed.921600=921600
325+
huzzah.menu.UploadSpeed.921600.upload.speed=921600
326+
285327
##############################################################
286328
# wifio.name=Wifio
287329
#
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
pins_arduino.h - Pin definition functions for Arduino
3+
Part of Arduino - http://www.arduino.cc/
4+
5+
Copyright (c) 2007 David A. Mellis
6+
Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015.
7+
8+
This library is free software; you can redistribute it and/or
9+
modify it under the terms of the GNU Lesser General Public
10+
License as published by the Free Software Foundation; either
11+
version 2.1 of the License, or (at your option) any later version.
12+
13+
This library is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
Lesser General Public License for more details.
17+
18+
You should have received a copy of the GNU Lesser General
19+
Public License along with this library; if not, write to the
20+
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21+
Boston, MA 02111-1307 USA
22+
23+
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
24+
*/
25+
26+
#ifndef Pins_Arduino_h
27+
#define Pins_Arduino_h
28+
29+
#define EXTERNAL_NUM_INTERRUPTS 16
30+
#define NUM_DIGITAL_PINS 17
31+
#define NUM_ANALOG_INPUTS 1
32+
33+
#define analogInputToDigitalPin(p) ((p > 0)?NOT_A_PIN:0)
34+
#define digitalPinToInterrupt(p) (((p) < EXTERNAL_NUM_INTERRUPTS)?p:NOT_A_PIN)
35+
#define digitalPinHasPWM(p) (((p) < NUM_DIGITAL_PINS)?p:NOT_A_PIN)
36+
37+
static const uint8_t SDA = 4;
38+
static const uint8_t SCL = 5;
39+
40+
static const uint8_t SS = 15;
41+
static const uint8_t MOSI = 13;
42+
static const uint8_t MISO = 12;
43+
static const uint8_t SCK = 14;
44+
45+
static const uint8_t BUILTIN_LED = 0;
46+
47+
static const uint8_t A0 = 17;
48+
49+
// These serial port names are intended to allow libraries and architecture-neutral
50+
// sketches to automatically default to the correct port name for a particular type
51+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
52+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
53+
//
54+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
55+
//
56+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
57+
//
58+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
59+
//
60+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
61+
//
62+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
63+
// pins are NOT connected to anything by default.
64+
#define SERIAL_PORT_MONITOR Serial
65+
#define SERIAL_PORT_USBVIRTUAL Serial
66+
#define SERIAL_PORT_HARDWARE Serial
67+
#define SERIAL_PORT_HARDWARE_OPEN Serial
68+
69+
#endif /* Pins_Arduino_h */
70+

0 commit comments

Comments
 (0)