diff --git a/boards.txt b/boards.txt index 818b26ce25..012d577336 100644 --- a/boards.txt +++ b/boards.txt @@ -1892,3 +1892,67 @@ coredev.menu.DebugLevel.OTA2____=OTA + Updater coredev.menu.DebugLevel.OTA2____.build.debug_level=-DDEBUG_ESP_OTA -DDEBUG_ESP_UPDATER coredev.menu.DebugLevel.all_____=All coredev.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM + +############################################################## +espectro.name=ESPectro Core + +espectro.upload.tool=esptool +espectro.upload.speed=460800 +espectro.upload.resetmethod=nodemcu +espectro.upload.maximum_size=1044464 +espectro.upload.maximum_data_size=81920 +espectro.upload.wait_for_upload_port=true +espectro.serial.disableDTR=true +espectro.serial.disableRTS=true + +espectro.build.mcu=esp8266 +espectro.build.f_cpu=80000000L +espectro.build.board=ESP8266_ESPECTRO +espectro.build.core=esp8266 +espectro.build.variant=espectro +espectro.build.flash_mode=dio +espectro.build.flash_size=4M +espectro.build.flash_freq=40 +espectro.build.debug_port= +espectro.build.debug_level= + +espectro.menu.CpuFrequency.80=80 MHz +espectro.menu.CpuFrequency.80.build.f_cpu=80000000L +espectro.menu.CpuFrequency.160=160 MHz +espectro.menu.CpuFrequency.160.build.f_cpu=160000000L + +espectro.menu.UploadSpeed.115200=115200 +espectro.menu.UploadSpeed.115200.upload.speed=115200 +espectro.menu.UploadSpeed.921600=921600 +espectro.menu.UploadSpeed.921600.upload.speed=921600 +espectro.menu.UploadSpeed.9600=9600 +espectro.menu.UploadSpeed.9600.upload.speed=9600 +espectro.menu.UploadSpeed.57600=57600 +espectro.menu.UploadSpeed.57600.upload.speed=57600 +espectro.menu.UploadSpeed.256000.windows=256000 +espectro.menu.UploadSpeed.256000.upload.speed=256000 +espectro.menu.UploadSpeed.230400.linux=230400 +espectro.menu.UploadSpeed.230400.macosx=230400 +espectro.menu.UploadSpeed.230400.macosx=230400 +espectro.menu.UploadSpeed.230400.upload.speed=230400 +espectro.menu.UploadSpeed.460800.linux=460800 +espectro.menu.UploadSpeed.460800.macosx=460800 +espectro.menu.UploadSpeed.460800.upload.speed=460800 +espectro.menu.UploadSpeed.512000.windows=512000 +espectro.menu.UploadSpeed.512000.upload.speed=512000 + +espectro.menu.FlashSize.4M3M=4M (3M SPIFFS) +espectro.menu.FlashSize.4M3M.build.flash_size=4M +espectro.menu.FlashSize.4M3M.build.flash_ld=eagle.flash.4m.ld +espectro.menu.FlashSize.4M3M.build.spiffs_start=0x100000 +espectro.menu.FlashSize.4M3M.build.spiffs_end=0x3FB000 +espectro.menu.FlashSize.4M3M.build.spiffs_blocksize=8192 +espectro.menu.FlashSize.4M3M.build.spiffs_pagesize=256 + +espectro.menu.FlashSize.4M1M=4M (1M SPIFFS) +espectro.menu.FlashSize.4M1M.build.flash_size=4M +espectro.menu.FlashSize.4M1M.build.flash_ld=eagle.flash.4m1m.ld +espectro.menu.FlashSize.4M1M.build.spiffs_start=0x300000 +espectro.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000 +espectro.menu.FlashSize.4M1M.build.spiffs_blocksize=8192 +espectro.menu.FlashSize.4M1M.build.spiffs_pagesize=256 diff --git a/doc/boards.md b/doc/boards.md index f500263b0d..f93e14ad64 100644 --- a/doc/boards.md +++ b/doc/boards.md @@ -33,6 +33,7 @@ title: Supported Hardware * [WeMos D1](#wemos-d1) * [WeMos D1 mini](#wemos-d1-mini) * [ESPino by ThaiEasyElec](#espinotee) + * [ESPectro](#espectro) ## Adafruit HUZZAH ESP8266 (ESP-12) @@ -303,6 +304,11 @@ We will update an English description soon. - Dimensions: http://thaieasyelec.com/downloads/ETEE052/ETEE052_ESPino_Dimension.pdf - Pinouts: http://thaieasyelec.com/downloads/ETEE052/ETEE052_ESPino_User_Manual_TH_v1_0_20160204.pdf (Please see pg. 8) +## ESPectro +ESPectro is designed by DycodeX, one of the first IoT companies in Indonesia. It uses the famous ESP8266 ESP-12 module, designed to fit on a breadboard, and all ESP-12 pins are broken out. Commonly accessible pins are colored, so it is user-friendly and still hacker-friendly. It integrates FT231XS as USB to TTL and auto-flash circuity so no need to press flash and reset button manually. It features a lot of on-board features: WS2812/Neopixel RGB LED, one color LED, programmable/user button, I2C grove connector, I2C OLED display compatible connector, and Flash and Reset button for manual flashing. +For more information about the hardware, pinout diagram, project examples, and learning materials, please see the [https://shop.makestro.com/en/product/espectro-core/](https://shop.makestro.com/en/product/espectro-core/). + +Extensive libraries also provided to easily access the board features and integration with the cloud as published here: [https://github.com/andriyadi/EspX/](https://github.com/andriyadi/EspX/), so you can focus on the making. diff --git a/doc/filesystem.md b/doc/filesystem.md index e7987d63c2..532bc2a310 100644 --- a/doc/filesystem.md +++ b/doc/filesystem.md @@ -53,6 +53,7 @@ SparkFun Thing | 512k | 64k SweetPea ESP-210 | 4M | 1M, 3M WeMos D1 & D1 mini | 4M | 1M, 3M ESPDuino | 4M | 1M, 3M +ESPectro | 4M | 1M, 3M **Note:** to use any of file system functions in the sketch, add the following include to the sketch: diff --git a/package/package_esp8266com_index.template.json b/package/package_esp8266com_index.template.json index 5493d51278..fdc662a7e5 100644 --- a/package/package_esp8266com_index.template.json +++ b/package/package_esp8266com_index.template.json @@ -72,6 +72,9 @@ }, { "name": "ESPDuino" + }, + { + "name": "ESPectro" } ], "toolsDependencies": [ diff --git a/variants/ESPectro/pins_arduino.h b/variants/ESPectro/pins_arduino.h new file mode 100644 index 0000000000..de1cb877c9 --- /dev/null +++ b/variants/ESPectro/pins_arduino.h @@ -0,0 +1,48 @@ +/* + pins_arduino.h - Pin definition functions for Arduino + Part of Arduino - http://www.arduino.cc/ + + Copyright (c) 2007 David A. Mellis + Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General + Public License along with this library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, + Boston, MA 02111-1307 USA + + $Id: wiring.h 249 2007-02-03 16:52:51Z mellis $ +*/ + +#ifndef Pins_Arduino_h +#define Pins_Arduino_h + +#include "../generic/common.h" + +#define ESPECTRO_CORE_VERSION 1.2 + +static const uint8_t SDA = 4; +static const uint8_t SCL = 5; + +static const uint8_t LED_BUILTIN = 15; +static const uint8_t BUILTIN_LED = 15; + +static const uint8_t BUTTON_BUILTIN = 2; +static const uint8_t BUILTIN_BUTTON = 2; + +static const uint8_t RX = 3; +static const uint8_t TX = 1; +static const uint8_t RX0 = 3; +static const uint8_t TX0 = 1; +static const uint8_t TX1 = 2; + +#endif /* Pins_Arduino_h */