Skip to content

Commit 3f5d06b

Browse files
boneskulligrr
authored andcommitted
add DigiStump Oak pins & board
1 parent c730c0f commit 3f5d06b

File tree

4 files changed

+132
-0
lines changed

4 files changed

+132
-0
lines changed

boards.txt

+65
Original file line numberDiff line numberDiff line change
@@ -2021,3 +2021,68 @@ gen4iod.menu.UploadSpeed.512000.windows=512000
20212021
gen4iod.menu.UploadSpeed.512000.upload.speed=512000
20222022
gen4iod.menu.UploadSpeed.921600=921600
20232023
gen4iod.menu.UploadSpeed.921600.upload.speed=921600
2024+
2025+
##############################################################
2026+
oak.name=DigiStump Oak
2027+
2028+
oak.upload.tool=esptool
2029+
oak.upload.speed=115200
2030+
oak.upload.resetmethod=ck
2031+
oak.upload.maximum_size=1040368
2032+
oak.upload.maximum_data_size=81920
2033+
oak.upload.wait_for_upload_port=true
2034+
oak.serial.disableDTR=true
2035+
oak.serial.disableRTS=true
2036+
2037+
oak.build.mcu=esp8266
2038+
oak.build.f_cpu=80000000L
2039+
oak.build.board=ESP8266_OAK
2040+
oak.build.core=esp8266
2041+
oak.build.variant=oak
2042+
oak.build.flash_mode=dio
2043+
oak.build.flash_size=4M
2044+
oak.build.flash_freq=40
2045+
oak.build.debug_port=
2046+
oak.build.debug_level=
2047+
2048+
oak.menu.CpuFrequency.80=80 MHz
2049+
oak.menu.CpuFrequency.80.build.f_cpu=80000000L
2050+
oak.menu.CpuFrequency.160=160 MHz
2051+
oak.menu.CpuFrequency.160.build.f_cpu=160000000L
2052+
2053+
oak.menu.UploadSpeed.921600=921600
2054+
oak.menu.UploadSpeed.921600.upload.speed=921600
2055+
oak.menu.UploadSpeed.115200=115200
2056+
oak.menu.UploadSpeed.115200.upload.speed=115200
2057+
oak.menu.UploadSpeed.9600=9600
2058+
oak.menu.UploadSpeed.9600.upload.speed=9600
2059+
oak.menu.UploadSpeed.57600=57600
2060+
oak.menu.UploadSpeed.57600.upload.speed=57600
2061+
oak.menu.UploadSpeed.256000.windows=256000
2062+
oak.menu.UploadSpeed.256000.upload.speed=256000
2063+
oak.menu.UploadSpeed.230400.linux=230400
2064+
oak.menu.UploadSpeed.230400.macosx=230400
2065+
oak.menu.UploadSpeed.230400.macosx=230400
2066+
oak.menu.UploadSpeed.230400.upload.speed=230400
2067+
oak.menu.UploadSpeed.460800.linux=460800
2068+
oak.menu.UploadSpeed.460800.macosx=460800
2069+
oak.menu.UploadSpeed.460800.upload.speed=460800
2070+
oak.menu.UploadSpeed.512000.windows=512000
2071+
oak.menu.UploadSpeed.512000.upload.speed=512000
2072+
2073+
2074+
oak.menu.FlashSize.4M3M=4M (3M SPIFFS)
2075+
oak.menu.FlashSize.4M3M.build.flash_size=4M
2076+
oak.menu.FlashSize.4M3M.build.flash_ld=eagle.flash.4m.ld
2077+
oak.menu.FlashSize.4M3M.build.spiffs_start=0x100000
2078+
oak.menu.FlashSize.4M3M.build.spiffs_end=0x3FB000
2079+
oak.menu.FlashSize.4M3M.build.spiffs_blocksize=8192
2080+
oak.menu.FlashSize.4M3M.build.spiffs_pagesize=256
2081+
2082+
oak.menu.FlashSize.4M1M=4M (1M SPIFFS)
2083+
oak.menu.FlashSize.4M1M.build.flash_size=4M
2084+
oak.menu.FlashSize.4M1M.build.flash_ld=eagle.flash.4m1m.ld
2085+
oak.menu.FlashSize.4M1M.build.spiffs_start=0x300000
2086+
oak.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
2087+
oak.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
2088+
oak.menu.FlashSize.4M1M.build.spiffs_pagesize=256

doc/boards.rst

+9
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ WifInfo integrates the ESP-12 or ESP-07+Ext antenna module with a 3.3v regulator
131131

132132
For more information, please see WifInfo related `blog <http://hallard.me/category/wifinfo/>`__ entries, `github <https://github.com/hallard/WifInfo>`__ and `community <https://community.hallard.me/category/16/wifinfo>`__ forum.
133133

134+
DigiStump Oak
135+
-------------
136+
137+
The Oak requires an [adapter](#serial-adapter) for a serial connection or flashing; its micro USB port is only for power.
138+
139+
To make a serial connection, wire the adapter's **TX to P3**, **RX to P4**, and **GND** to **GND**. Supply 3.3v from the serial adapter if not already powered via USB.
140+
141+
To put the board into bootloader mode, configure a serial connection as above, connect **P2 to GND**, then re-apply power. Once flashing is complete, remove the connection from P2 to GND, then re-apply power to boot into normal mode.
142+
134143
Generic ESP8266 modules
135144
-----------------------
136145

package/package_esp8266com_index.template.json

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
},
7474
{
7575
"name": "4D Systems gen4 IoD Range"
76+
},
77+
{
78+
"name": "DigiStump Oak"
7679
}
7780
],
7881
"toolsDependencies": [

variants/oak/pins_arduino.h

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
static const uint8_t P0 = 2;
30+
static const uint8_t P1 = 5;
31+
static const uint8_t P2 = 0;
32+
static const uint8_t P3 = 3;
33+
static const uint8_t P4 = 1;
34+
static const uint8_t P5 = 4;
35+
static const uint8_t P6 = 15;
36+
static const uint8_t P7 = 13;
37+
static const uint8_t P8 = 12;
38+
static const uint8_t P9 = 14;
39+
static const uint8_t P10 = 16;
40+
static const uint8_t P11 = 17;
41+
42+
static const uint8_t SDA = 2;
43+
static const uint8_t SCL = 0;
44+
45+
static const uint8_t SS = 15;
46+
static const uint8_t MOSI = 13;
47+
static const uint8_t MISO = 12;
48+
static const uint8_t SCK = 14;
49+
50+
static const uint8_t BUILTIN_LED = 5;
51+
static const uint8_t LED_BUILTIN = 5;
52+
53+
static const uint8_t A0 = 17;
54+
55+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)