Skip to content

Commit 4354ef9

Browse files
committed
Fix SparkFun Thing board definition
1 parent 033463a commit 4354ef9

File tree

3 files changed

+93
-11
lines changed

3 files changed

+93
-11
lines changed

hardware/esp8266com/esp8266/boards.txt

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ nodemcu.menu.UploadSpeed.921600.upload.speed=921600
229229

230230
##############################################################
231231
nodemcuv2.name=NodeMCU 1.0 (ESP-12E Module)
232-
232+
233233
nodemcuv2.upload.tool=esptool
234234
nodemcuv2.upload.speed=115200
235235
nodemcuv2.upload.resetmethod=ck
@@ -238,7 +238,7 @@ nodemcuv2.upload.maximum_data_size=81920
238238
nodemcuv2.upload.wait_for_upload_port=true
239239
nodemcuv2.serial.disableDTR=true
240240
nodemcuv2.serial.disableRTS=true
241-
241+
242242
nodemcuv2.build.mcu=esp8266
243243
nodemcuv2.build.f_cpu=80000000L
244244
nodemcuv2.build.board=ESP8266_ESP12
@@ -252,12 +252,12 @@ nodemcuv2.build.spiffs_start=0x100000
252252
nodemcuv2.build.spiffs_end=0x3FB000
253253
nodemcuv2.build.spiffs_pagesize=256
254254
nodemcuv2.build.spiffs_blocksize=8192
255-
255+
256256
nodemcuv2.menu.CpuFrequency.80=80 MHz
257257
nodemcuv2.menu.CpuFrequency.80.build.f_cpu=80000000L
258258
nodemcuv2.menu.CpuFrequency.160=160 MHz
259259
nodemcuv2.menu.CpuFrequency.160.build.f_cpu=160000000L
260-
260+
261261
nodemcuv2.menu.UploadSpeed.115200=115200
262262
nodemcuv2.menu.UploadSpeed.115200.upload.speed=115200
263263
nodemcuv2.menu.UploadSpeed.9600=9600
@@ -336,25 +336,30 @@ thing.name=SparkFun ESP8266 Thing
336336
thing.upload.tool=esptool
337337
thing.upload.speed=921600
338338
thing.upload.resetmethod=ck
339-
thing.upload.maximum_size=524288
339+
thing.upload.maximum_size=434160
340+
thing.upload.maximum_data_size=81920
340341
thing.upload.wait_for_upload_port=true
341342
thing.serial.disableDTR=true
342343
thing.serial.disableRTS=true
343344

344345
thing.build.mcu=esp8266
345346
thing.build.f_cpu=80000000L
346-
thing.build.board=ESP8266_ESP01
347+
thing.build.board=ESP8266_THING
347348
thing.build.core=esp8266
348349
thing.build.variant=thing
349350
thing.build.flash_mode=qio
350-
thing.build.flash_size=4M
351+
# flash chip: AT25SF041 (512 kbyte, 4Mbit)
352+
thing.build.flash_size=512K
353+
thing.build.flash_ld=eagle.flash.512k.ld
351354
thing.build.flash_freq=40
352-
thing.build.flash_ld=eagle.flash.4m.ld
353-
thing.build.spiffs_start=0x100000
354-
thing.build.spiffs_end=0x3FB000
355+
thing.build.spiffs_start=0x6B000
356+
thing.build.spiffs_end=0x7B000
357+
thing.build.spiffs_blocksize=4096
355358

356359
thing.menu.CpuFrequency.80=80 MHz
357360
thing.menu.CpuFrequency.80.build.f_cpu=80000000L
361+
thing.menu.CpuFrequency.160=160 MHz
362+
thing.menu.CpuFrequency.160.build.f_cpu=160000000L
358363

359364
thing.menu.UploadSpeed.115200=115200
360365
thing.menu.UploadSpeed.115200.upload.speed=115200
@@ -382,6 +387,7 @@ esp210.upload.tool=esptool
382387
esp210.upload.speed=115200
383388
esp210.upload.resetmethod=ck
384389
esp210.upload.maximum_size=1044464
390+
esp210.upload.maximum_data_size=81920
385391
esp210.upload.wait_for_upload_port=true
386392
esp210.serial.disableDTR=true
387393
esp210.serial.disableRTS=true

hardware/esp8266com/esp8266/doc/boards.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: Supported Hardware
3-
layout: page
43
---
54

65
- [Adafruit HUZZAH ESP8266 (ESP-12)](#adafruit-huzzah-esp8266-esp-12)
76
- [NodeMCU 0.9](#nodemcu-0-9)
87
- [NodeMCU 1.0](#nodemcu-1-0)
98
- [Olimex MOD-WIFI-ESP8266](#olimex-mod-wifi-esp8266)
9+
- [SparkFun ESP8266 Thing](#sparkfun-esp8266-thing)
1010
- [SweetPea ESP-210](#sweetpea-esp-210)
1111
- [Generic ESP8266 modules](#generic-esp8266-modules)
1212

@@ -44,6 +44,12 @@ If you want to use NodeMCU pin 5, use D5 for pin number, and it will be translat
4444

4545
*TODO: add notes*
4646

47+
### SparkFun ESP8266 Thing ###
48+
49+
Product page: https://www.sparkfun.com/products/13231
50+
51+
*TODO: add notes*
52+
4753
### SweetPea ESP-210
4854

4955
*TODO: add notes*
Lines changed: 70 additions & 0 deletions
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 = 2;
38+
static const uint8_t SCL = 14;
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 = 5;
46+
47+
static const uint8_t A0 = 17;
48+
49+
50+
// These serial port names are intended to allow libraries and architecture-neutral
51+
// sketches to automatically default to the correct port name for a particular type
52+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
53+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
54+
//
55+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
56+
//
57+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
58+
//
59+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
60+
//
61+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
62+
//
63+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
64+
// pins are NOT connected to anything by default.
65+
#define SERIAL_PORT_MONITOR Serial
66+
#define SERIAL_PORT_USBVIRTUAL Serial
67+
#define SERIAL_PORT_HARDWARE Serial
68+
#define SERIAL_PORT_HARDWARE_OPEN Serial
69+
70+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)